Skip to content
Snippets Groups Projects
user avatar
Vasiliy Kulikov authored
__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 a263b309
("ipv4: Make neigh lookups directly in output packet path.").

Signed-off-by: default avatarVasily Kulikov <segoon@openwall.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
9871f1ad
History
Name Last commit Last update