]> 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)
commit772ad3ef071c781394b62646c6bc9195c3f2ccec
tree78fafb7299efac599ddc4c645ea41683b71f593d
parentcf88859a478677e585db57a527b5a2fa49048fc8
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: 78fe3c434b13 ("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