OpenCloudOS-Kernel/drivers/infiniband/hw/cxgb4
Zhouyi Zhou aaa0c23cb9 Fix dst_neigh_lookup/dst_neigh_lookup_skb return value handling bug
When neighbour table is full, dst_neigh_lookup/dst_neigh_lookup_skb will return
-ENOBUFS which is absolutely non zero, while all the code in kernel which use
above functions assume failure only on zero return which will cause panic. (for
example: : https://bugzilla.kernel.org/show_bug.cgi?id=54731).

This patch corrects above error with smallest changes to kernel source code and
also correct two return value check missing bugs in drivers/infiniband/hw/cxgb4/cm.c

Tested on my x86_64 SMP machine

Reported-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Tested-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Signed-off-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-15 09:06:58 -04: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
cm.c Fix dst_neigh_lookup/dst_neigh_lookup_skb return value handling bug 2013-03-15 09:06:58 -04:00
cq.c RDMA/cxgb4: Fix iw_cxgb4 count_rcqes() logic 2011-11-28 11:53:05 -08:00
device.c RDMA/cxgb4: Fix cast warning 2013-02-15 15:13:43 -08:00
ev.c RDMA/cxgb4: Always log async errors 2013-02-14 15:51:56 -08:00
id_table.c RDMA/cxgb4: Remove kfifo usage 2012-05-18 13:22:36 -07:00
iw_cxgb4.h IB/cxgb4: convert to idr_alloc() 2013-02-27 19:10:16 -08:00
mem.c IB/core: Add "type 2" memory windows support 2013-02-21 11:51:45 -08:00
provider.c RDMA/cxgb4: Add query_qp support 2012-05-18 13:22:37 -07:00
qp.c RDMA/cxgb4: Abort connections when moving to ERROR state 2013-02-14 15:51:55 -08: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