]> git.baikalelectronics.ru Git - kernel.git/commit
net: cls_bpf: fix NULL deref on offload filter removal
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 1 Nov 2019 03:06:59 +0000 (20:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Nov 2019 22:16:01 +0000 (15:16 -0700)
commit422ecfa70522fe799c4f5d7ba66abf55099d51c4
treeb3f7fbeca17481c4310a2c77a294a0e591d38f68
parent4c6468ec0ea9049e0c44c4b44ab549e9f52654a5
net: cls_bpf: fix NULL deref on offload filter removal

Commit 09a5b0aafd51 ("net: sched: refactor block offloads counter
usage") missed the fact that either new prog or old prog may be
NULL.

Fixes: 09a5b0aafd51 ("net: sched: refactor block offloads counter usage")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_bpf.c