git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: sched: integer overflow fix
[pandora-kernel.git]
/
net
/
sched
/
sch_mqprio.c
diff --git
a/net/sched/sch_mqprio.c
b/net/sched/sch_mqprio.c
index
f88256c
..
28de430
100644
(file)
--- a/
net/sched/sch_mqprio.c
+++ b/
net/sched/sch_mqprio.c
@@
-107,7
+107,7
@@
static int mqprio_init(struct Qdisc *sch, struct nlattr *opt)
if (!netif_is_multiqueue(dev))
return -EOPNOTSUPP;
- if (nla_len(opt) < sizeof(*qopt))
+ if (
!opt ||
nla_len(opt) < sizeof(*qopt))
return -EINVAL;
qopt = nla_data(opt);