]> git.baikalelectronics.ru Git - kernel.git/commit
rtnl: RTM_GETNETCONF: fix wrong return value
authorAnton Protopopov <a.s.protopopov@gmail.com>
Wed, 17 Feb 2016 02:43:16 +0000 (21:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2016 20:33:46 +0000 (15:33 -0500)
commite55be0f7e4517a95747a6c0c8227597c425f7a3a
tree0ddad3647e038b6fc41840e9a471d95defc54231
parent6440c72adc51cb58112bdc823ff1edcf6114ce90
rtnl: RTM_GETNETCONF: fix wrong return value

An error response from a RTM_GETNETCONF request can return the positive
error value EINVAL in the struct nlmsgerr that can mislead userspace.

Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c
net/ipv6/addrconf.c