]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'tcf_foo_init-NULL-deref'
authorDavid S. Miller <davem@davemloft.net>
Sat, 17 Mar 2018 23:53:29 +0000 (19:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Mar 2018 23:53:29 +0000 (19:53 -0400)
commita0d210cd441913f56ac4de255a0c2724549a9863
treecff5b5cd7ea1c187cbe8d6f19f7a10fc6e79824b
parent8831edfb912300aa13d135373d12405b4cb1dff0
parent036906b43cc5aab67ed7b7078d2820384c94e722
Merge branch 'tcf_foo_init-NULL-deref'

Davide Caratti says:

====================
net/sched: fix NULL dereference in the error path of .init()

with several TC actions it's possible to see NULL pointer dereference,
when the .init() function calls tcf_idr_alloc(), fails at some point and
then calls tcf_idr_release(): this series fixes all them introducing
non-NULL tests in the .cleanup() function.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>