]> 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)
commit41aa29a58b5f7f7be43f35372ef411f304a87a0d
treeb3f7fbeca17481c4310a2c77a294a0e591d38f68
parent8101e069418d136b995b3da81f1af72637082fda
net: cls_bpf: fix NULL deref on offload filter removal

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

Fixes: 401192113730 ("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