Re: [PATCH] net/ipv6: Fix a test against 'ipv6_find_idev()' return value

2018-12-30 Thread David Miller
From: Christophe JAILLET Date: Fri, 28 Dec 2018 23:28:21 +0100 > 'ipv6_find_idev()' returns NULL on error, not an error pointer. > Update the test accordingly and return -ENOBUFS, as already done in > 'addrconf_add_dev()', if NULL is returned. > > Fixes: ("ipv6: allow userspace to add IFA_F_OPTI

[PATCH] net/ipv6: Fix a test against 'ipv6_find_idev()' return value

2018-12-28 Thread Christophe JAILLET
'ipv6_find_idev()' returns NULL on error, not an error pointer. Update the test accordingly and return -ENOBUFS, as already done in 'addrconf_add_dev()', if NULL is returned. Fixes: ("ipv6: allow userspace to add IFA_F_OPTIMISTIC addresses") Signed-off-by: Christophe JAILLET --- net/ipv6/addrcon