rtnl: RTM_GETNETCONF: fix wrong return value

[ Upstream commit a97eb33ff2 ]

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>
This commit is contained in:
Anton Protopopov 2016-02-16 21:43:16 -05:00 • committed by Greg Kroah-Hartman
commit b7c2e2acc6
2 changed files with 2 additions and 2 deletions