]> git.baikalelectronics.ru Git - kernel.git/commit
sch_sfq: fix null pointer dereference on init failure
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 30 Aug 2017 09:49:04 +0000 (12:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Aug 2017 22:26:12 +0000 (15:26 -0700)
commite232657661242cc8a169595160847b3e66aa7056
tree78fafb7299efac599ddc4c645ea41683b71f593d
parent634576a1844dba15bc5e6fc61d72f37e13a21615
sch_sfq: fix null pointer dereference on init failure

Currently only a memory allocation failure can lead to this, so let's
initialize the timer first.

Fixes: 6529eaba33f0 ("net: sched: introduce tcf block infractructure")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_sfq.c