OSDN Git Service

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)
commit78f1b04fa20d414ff3aa749b2c303324c7db2c26
treecff5b5cd7ea1c187cbe8d6f19f7a10fc6e79824b
parentf9db50691db4a7d860fce985f080bb3fc23a7ede
parent2d433610176d6569e8b3a28f67bc72235bf69efc
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>