mpls: Return error for RTA_GATEWAY attribute
commita9494400f8c1ea8d2e760cec1be44dfe225a607b
authorDavid Ahern <dsahern@gmail.com>
Tue, 26 Feb 2019 17:00:04 +0000 (26 09:00 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:03:09 +0000 (13 14:03 -0700)
tree9c20901713d1daff4ddd4fcbf1ae4269711b2f99
parent87964ee15964dd576c85abce4ec69530cc25acb3
mpls: Return error for RTA_GATEWAY attribute

[ Upstream commit be48220edd48ca0d569782992840488a52373a24 ]

MPLS does not support nexthops with an MPLS address family.
Specifically, it does not handle RTA_GATEWAY attribute. Make it
clear by returning an error.

Fixes: 03c0566542f4c ("mpls: Netlink commands to add, remove, and dump routes")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mpls/af_mpls.c