diff options
Diffstat (limited to 'net/sched/act_connmark.c')
-rw-r--r-- | net/sched/act_connmark.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sched/act_connmark.c b/net/sched/act_connmark.c index bb41699c6c49..7ecb14f3db54 100644 --- a/net/sched/act_connmark.c +++ b/net/sched/act_connmark.c | |||
@@ -109,6 +109,9 @@ static int tcf_connmark_init(struct net *net, struct nlattr *nla, | |||
109 | if (ret < 0) | 109 | if (ret < 0) |
110 | return ret; | 110 | return ret; |
111 | 111 | ||
112 | if (!tb[TCA_CONNMARK_PARMS]) | ||
113 | return -EINVAL; | ||
114 | |||
112 | parm = nla_data(tb[TCA_CONNMARK_PARMS]); | 115 | parm = nla_data(tb[TCA_CONNMARK_PARMS]); |
113 | 116 | ||
114 | if (!tcf_hash_check(parm->index, a, bind)) { | 117 | if (!tcf_hash_check(parm->index, a, bind)) { |