From: Zhouyi Zhou Date: Thu, 14 Mar 2013 17:21:50 +0000 (+0000) Subject: Fix dst_neigh_lookup/dst_neigh_lookup_skb return value handling bug X-Git-Tag: v3.9-rc4~27^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaa0c23cb90141309f5076ba5e3bfbd39544b985;p=pandora-kernel.git 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 Tested-by: Zhouyi Zhou Signed-off-by: Zhouyi Zhou Signed-off-by: David S. Miller --- Reading git-diff-tree failed