[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1524539321-9103-1-git-send-email-roopa@cumulusnetworks.com>
Date: Mon, 23 Apr 2018 20:08:41 -0700
From: Roopa Prabhu <roopa@...ulusnetworks.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, dsa@...ulusnetworks.com
Subject: [PATCH net-next] net: fib_rules: fix l3mdev netlink attr processing
From: Roopa Prabhu <roopa@...ulusnetworks.com>
Fixes: b16fb418b1bf ("net: fib_rules: add extack support")
Signed-off-by: Roopa Prabhu <roopa@...ulusnetworks.com>
---
Looks like I broke this when i split extack changes into a separate patch :(
net/core/fib_rules.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c
index ebd9351..2271c80 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;
--
2.1.4
Powered by blists - more mailing lists