]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: cls_matchall: fix null pointer dereference
authorJiri Pirko <jiri@mellanox.com>
Mon, 22 May 2017 14:46:13 +0000 (16:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 18:54:16 +0000 (14:54 -0400)
commite77f95de5afb4735094a5573df5cfadc334d2da7
tree4bdb6eb967b730de091e58a5fd8635272216c146
parent3a4ca9edecc01f571fdd207ef5a14813d7da8840
net: sched: cls_matchall: fix null pointer dereference

Since the head is guaranteed by the check above to be null, the call_rcu
would explode. Remove the previously logically dead code that was made
logically very much alive and kicking.

Fixes: a1cc2513286c ("net/sched: remove redundant null check on head")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_matchall.c