net: fib_rules: fix l3mdev netlink attr processing
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Tue, 24 Apr 2018 03:08:41 +0000 (20:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Apr 2018 03:20:12 +0000 (23:20 -0400)
Fixes: b16fb418b1bf ("net: fib_rules: add extack support")
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c

index ebd9351b213a966de581d4a1265c85ef057c4cbb..2271c80fd9675decba0526444af59109c6f785c4 100644 (file)
@@ -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;