mpls: Return error for RTA_GATEWAY attribute
authorDavid Ahern <dsahern@gmail.com>
Tue, 26 Feb 2019 17:00:04 +0000 (09:00 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Mar 2019 06:17:19 +0000 (07:17 +0100)
commit4f3221dee1e1230555cbf24c2d5907f470b5e10e
treeb715f65131d24acfc4045765b2ca6ad416aa8d30
parenta68d31cc530649a714bd309dde6d12083231a518
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