Skip to content

Commit

Permalink
net: fib_rules: fix l3mdev netlink attr processing
Browse files Browse the repository at this point in the history
Fixes: b16fb41 ("net: fib_rules: add extack support")
Signed-off-by: Roopa Prabhu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
roopa-prabhu authored and davem330 committed Apr 24, 2018
1 parent b300fcf commit 9c20b93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/core/fib_rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9c20b93

Please sign in to comment.