]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:22:14 +0000 (10:22 +0100)
commit4b55a4d377b7098e0209623cc968a85a7f912459
treec381947bfb6c3b7ef43c55778e3ebdebb8e172eb
parent2a4584b5c26476ac9078dcf9797e850cbaf0d417
rtnl: RTM_GETNETCONF: fix wrong return value

BugLink: http://bugs.launchpad.net/bugs/1553179
[ Upstream commit a97eb33ff225f34a8124774b3373fd244f0e83ce ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
net/ipv4/devinet.c
net/ipv6/addrconf.c