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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -541,9 +541,11 @@ 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;
	nlrule->flags = frh->flags;