]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: addrconf_f6i_alloc - fix non-null pointer check to !IS_ERR()
authorMaciej Żenczykowski <maze@google.com>
Fri, 6 Sep 2019 03:56:37 +0000 (20:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Sep 2019 15:46:44 +0000 (17:46 +0200)
commit5c015503ec5267b653bad7f45514e3533e8ff838
tree6c5db08d73d4c16ae3cbce16cebc8b86a344632d
parent76535f57267c77c1c8e9f7fac140db8db78b99c3
ipv6: addrconf_f6i_alloc - fix non-null pointer check to !IS_ERR()

Fixes a stupid bug I recently introduced...
ip6_route_info_create() returns an ERR_PTR(err) and not a NULL on error.

Fixes: bc0155842fce ("net-ipv6: fix excessive RTF_ADDRCONF flag on ::1/128 local route (and others)'")
Cc: David Ahern <dsahern@gmail.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c