diff options
Diffstat (limited to 'net/core/fib_rules.c')
-rw-r--r-- | net/core/fib_rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index d1a70ad4b54..ef0e7d9e664 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c | |||
@@ -287,7 +287,7 @@ static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) | |||
287 | rule->flags = frh->flags; | 287 | rule->flags = frh->flags; |
288 | rule->table = frh_get_table(frh, tb); | 288 | rule->table = frh_get_table(frh, tb); |
289 | 289 | ||
290 | if (!rule->pref && ops->default_pref) | 290 | if (!tb[FRA_PRIORITY] && ops->default_pref) |
291 | rule->pref = ops->default_pref(ops); | 291 | rule->pref = ops->default_pref(ops); |
292 | 292 | ||
293 | err = -EINVAL; | 293 | err = -EINVAL; |