提交 9c20b937 编写于 作者: R Roopa Prabhu 提交者: David S. Miller

net: fib_rules: fix l3mdev netlink attr processing

Fixes: b16fb418 ("net: fib_rules: add extack support")
Signed-off-by: NRoopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册