summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoopa Prabhu <roopa@cumulusnetworks.com>2018-04-23 20:08:41 -0700
committerDavid S. Miller <davem@davemloft.net>2018-04-23 23:20:12 -0400
commit9c20b9372fbaf6f7d4c05f5f925806a7928f0c73 (patch)
tree123587ed8fdbb1043515f630554902549fa2b506 /net
parentb300fcf883aca9b96f9281cd05df4899fae10917 (diff)
net: fib_rules: fix l3mdev netlink attr processing
Fixes: b16fb418b1bf ("net: fib_rules: add extack support") Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/fib_rules.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c
index ebd9351b213a..2271c80fd967 100644
--- a/net/core/fib_rules.c
+++ b/net/core/fib_rules.c
@@ -541,8 +541,10 @@ static int fib_nl2rule(struct sk_buff *skb, struct nlmsghdr *nlh,
nlrule->l3mdev = nla_get_u8(tb[FRA_L3MDEV]);
if (nlrule->l3mdev != 1)
#endif
+ {
NL_SET_ERR_MSG(extack, "Invalid l3mdev");
goto errout_free;
+ }
}
nlrule->action = frh->action;