tmp_suning_uos_patched/drivers/infiniband/hw/cxgb4
Thadeu Lima de Souza Cascardo 71b43fd573 RDMA/cxgb4: Fix crash when peer address is 0.0.0.0
When using rping -c -a 0.0.0.0 with iw_cxgb4, the system crashes when
rdma_connect() is called.  ip_dev_find() will return NULL, but pdev is
accessed anyway.

Checking that pdev is NULL and returning -ENODEV prevents the system
from crashing.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2012-06-03 22:59:15 -07:00
..
cm.c RDMA/cxgb4: Fix crash when peer address is 0.0.0.0 2012-06-03 22:59:15 -07:00
cq.c RDMA/cxgb4: Fix iw_cxgb4 count_rcqes() logic 2011-11-28 11:53:05 -08:00
device.c RDMA/cxgb4: Include vmalloc.h for vmalloc and vfree 2012-05-21 09:00:34 -07:00
ev.c RDMA/cxgb4: Disable interrupts in c4iw_ev_dispatch() 2012-05-18 13:22:32 -07:00
id_table.c RDMA/cxgb4: Remove kfifo usage 2012-05-18 13:22:36 -07:00
iw_cxgb4.h RDMA/cxgb4: Add query_qp support 2012-05-18 13:22:37 -07:00
Kconfig Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
Makefile RDMA/cxgb4: Remove kfifo usage 2012-05-18 13:22:36 -07:00
mem.c RDMA/cxgb4: Remove kfifo usage 2012-05-18 13:22:36 -07:00
provider.c RDMA/cxgb4: Add query_qp support 2012-05-18 13:22:37 -07:00
qp.c RDMA/cxgb4: Add query_qp support 2012-05-18 13:22:37 -07:00
resource.c RDMA/cxgb4: Remove kfifo usage 2012-05-18 13:22:36 -07:00
t4.h RDMA/cxgb4: DB Drop Recovery for RDMA and LLD queues 2012-05-18 13:22:33 -07:00
t4fw_ri_api.h RDMA/cxgb4: Add module option to tweak delayed ack 2010-07-21 10:53:52 -07:00
user.h RDMA/cxgb4: Add DB Overflow Avoidance 2012-05-18 13:22:31 -07:00