summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mwifiex/join.c
diff options
context:
space:
mode:
authorZhouyi Zhou <zhouzhouyi@gmail.com>2013-03-14 17:21:50 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-15 09:06:58 -0400
commitaaa0c23cb90141309f5076ba5e3bfbd39544b985 (patch)
treeb6aa0989e463fbc803474c077e5a3ab512017024 /drivers/net/wireless/mwifiex/join.c
parent1e731cb986d564c4938bcba89ff5f4aea1d8e2fb (diff)
downloadlinux-3.10-aaa0c23cb90141309f5076ba5e3bfbd39544b985.tar.gz
linux-3.10-aaa0c23cb90141309f5076ba5e3bfbd39544b985.tar.bz2
linux-3.10-aaa0c23cb90141309f5076ba5e3bfbd39544b985.zip
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>
Diffstat (limited to 'drivers/net/wireless/mwifiex/join.c')
0 files changed, 0 insertions, 0 deletions