Home
last modified time | relevance | path

Searched hist:"178 fe944" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ipv6/
H A Daddrconf.c178fe944 Fri Dec 28 16:28:21 CST 2018 Christophe JAILLET <christophe.jaillet@wanadoo.fr> net/ipv6: Fix a test against 'ipv6_find_idev()' return value

'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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
178fe944 Fri Dec 28 16:28:21 CST 2018 Christophe JAILLET <christophe.jaillet@wanadoo.fr> net/ipv6: Fix a test against 'ipv6_find_idev()' return value

'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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>