]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix return value check in fib6_add()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 20 Sep 2012 18:29:56 +0000 (18:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2012 17:43:52 +0000 (13:43 -0400)
commit1d84df6756c0afca03696d31db0d42ccb0959d30
tree7c3605b8ac3f8066bba52407c505fc83b3f338e8
parent7e4534de0d98b38eee51c13721308938a0756931
ipv6: fix return value check in fib6_add()

In case of error, the function fib6_add_1() returns ERR_PTR()
or NULL pointer. The ERR_PTR() case check is missing in fib6_add().

dpatch engine is used to generated this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c