diff options
Diffstat (limited to 'net/sched/sch_mqprio.c')
-rw-r--r-- | net/sched/sch_mqprio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_mqprio.c b/net/sched/sch_mqprio.c index ea17cbed29e..59b26b8ff4b 100644 --- a/net/sched/sch_mqprio.c +++ b/net/sched/sch_mqprio.c | |||
@@ -106,7 +106,7 @@ static int mqprio_init(struct Qdisc *sch, struct nlattr *opt) | |||
106 | if (!netif_is_multiqueue(dev)) | 106 | if (!netif_is_multiqueue(dev)) |
107 | return -EOPNOTSUPP; | 107 | return -EOPNOTSUPP; |
108 | 108 | ||
109 | if (nla_len(opt) < sizeof(*qopt)) | 109 | if (!opt || nla_len(opt) < sizeof(*qopt)) |
110 | return -EINVAL; | 110 | return -EINVAL; |
111 | 111 | ||
112 | qopt = nla_data(opt); | 112 | qopt = nla_data(opt); |