Commit 9c20b937 authored by Roopa Prabhu's avatar Roopa Prabhu Committed by David S. Miller

net: fib_rules: fix l3mdev netlink attr processing

Fixes: b16fb418 ("net: fib_rules: add extack support")
Signed-off-by: default avatarRoopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b300fcf8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment