Re: [PATCH net-next] ipv6: check fn before doing FIB6_SUBTREE(fn)

2017-10-16 Thread David Miller
From: Wei Wang Date: Fri, 13 Oct 2017 15:01:08 -0700 > From: Wei Wang > > In fib6_locate(), we need to first make sure fn is not NULL before doing > FIB6_SUBTREE(fn) to avoid crash. > > This fixes the following static checker warning: >

Re: [PATCH net-next] ipv6: check fn before doing FIB6_SUBTREE(fn)

2017-10-13 Thread Martin KaFai Lau
On Fri, Oct 13, 2017 at 10:01:08PM +, Wei Wang wrote: > From: Wei Wang > > In fib6_locate(), we need to first make sure fn is not NULL before doing > FIB6_SUBTREE(fn) to avoid crash. Acked-by: Martin KaFai Lau

[PATCH net-next] ipv6: check fn before doing FIB6_SUBTREE(fn)

2017-10-13 Thread Wei Wang
From: Wei Wang In fib6_locate(), we need to first make sure fn is not NULL before doing FIB6_SUBTREE(fn) to avoid crash. This fixes the following static checker warning: net/ipv6/ip6_fib.c:1462 fib6_locate() warn: variable dereferenced before check 'fn' (see line