]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: fix return value check
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 24 Sep 2012 18:29:01 +0000 (18:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2012 17:18:19 +0000 (13:18 -0400)
commitf3f104fdf2ed638d830e8d4ec6c729084346319c
treebc39da0b5949f1eebe0241007db5fd70243490f4
parent0e958520f489c64b1bf8030557da2295328c553a
l2tp: fix return value check

In case of error, the function genlmsg_put() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should
be replaced with NULL test.

dpatch engine is used to auto generate 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/l2tp/l2tp_netlink.c