]> 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)
commit058ff7fcbfbb40a1f20e9750343d35e93aa358d8
treecff5b5cd7ea1c187cbe8d6f19f7a10fc6e79824b
parent640143c204443f3356ba4b2738a2e64d1196d4a1
parent0e118f3b741471aee2992b7555c2b417c7f6f73f
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>