From: Vasiliy Kulikov Date: Mon, 6 Aug 2012 03:55:29 +0000 (+0000) Subject: ip: fix error handling in ip_finish_output2() X-Git-Tag: v3.6-rc2~24^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9871f1ad677d95ffeca80e2c21b70af9bfc9cc91;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed