diff options
author | Paolo Abeni <[email protected]> | 2017-11-28 14:28:39 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-11-28 15:54:05 -0500 |
commit | f85729d07cd649bf69820f14bdad36326a24a699 (patch) | |
tree | 7b7b208dcc0d37e0f69b875e9142471fe50135be /drivers/fpga/fpga-mgr.c | |
parent | 25415cec502a1232b19fffc85465882b19a90415 (diff) |
sch_sfq: fix null pointer dereference at timer expiration
While converting sch_sfq to use timer_setup(), the commit cdeabbb88134
("net: sched: Convert timers to use timer_setup()") forgot to
initialize the 'sch' field. As a result, the timer callback tries to
dereference a NULL pointer, and the kernel does oops.
Fix it initializing such field at qdisc creation time.
Fixes: cdeabbb88134 ("net: sched: Convert timers to use timer_setup()")
Signed-off-by: Paolo Abeni <[email protected]>
Acked-by: Cong Wang <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions