summaryrefslogtreecommitdiffstats
path: root/net/sched/act_pedit.c
diff options
context:
space:
mode:
authorVasiliy Kulikov <segoon@openwall.com>2012-08-06 03:55:29 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-06 13:30:01 -0700
commit9871f1ad677d95ffeca80e2c21b70af9bfc9cc91 (patch)
tree85e0fc87c1df524a936d2c0d61a86bd9f994c760 /net/sched/act_pedit.c
parent91d27a8650d5359a7a320daeb35b88cdea15e3a8 (diff)
downloadlinux-9871f1ad677d95ffeca80e2c21b70af9bfc9cc91.tar.gz
linux-9871f1ad677d95ffeca80e2c21b70af9bfc9cc91.tar.bz2
linux-9871f1ad677d95ffeca80e2c21b70af9bfc9cc91.zip
ip: fix error handling in ip_finish_output2()
__neigh_create() returns either a pointer to struct neighbour or PTR_ERR(). But the caller expects it to return either a pointer or NULL. Replace the NULL check with IS_ERR() check. The bug was introduced in a263b3093641fb1ec377582c90986a7fd0625184 ("ipv4: Make neigh lookups directly in output packet path."). Signed-off-by: Vasily Kulikov <segoon@openwall.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_pedit.c')
0 files changed, 0 insertions, 0 deletions