diff options
author | WANG Cong <[email protected]> | 2017-04-04 18:51:30 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-04-06 12:28:39 -0700 |
commit | 92f9170621a13e4ba4eda6dfb070318d5405a0cf (patch) | |
tree | 14335495cf00e966fa425b467395b6b38dd77a57 /include/linux/fpga/fpga-bridge.h | |
parent | a8801799c6975601fd58ae62f48964caec2eb83f (diff) |
net_sched: check noop_qdisc before qdisc_hash_add()
Dmitry reported a crash when injecting faults in
attach_one_default_qdisc() and dev->qdisc is still
a noop_disc, the check before qdisc_hash_add() fails
to catch it because it tests NULL. We should test
against noop_qdisc since it is the default qdisc
at this point.
Fixes: 59cc1f61f09c ("net: sched: convert qdisc linked list to hashtable")
Reported-by: Dmitry Vyukov <[email protected]>
Cc: Jiri Kosina <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Acked-by: Jiri Kosina <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions