]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: bpf: ensure bpf program is freed on detach
authorSean Young <sean@mess.org>
Wed, 4 Jul 2018 14:57:58 +0000 (10:57 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 13 Jul 2018 15:07:29 +0000 (11:07 -0400)
commit39fbb88165b2bbbc77ea7acab5f10632a31526e6
tree9a19d89f580e4b9a9bd7e2497f3e6975b68b37c8
parent7c1b9a5aeed91bef98988ac0fcf38c8c1f4f9a3a
media: bpf: ensure bpf program is freed on detach

Currently we are leaking bpf programs when they are detached from the
lirc device; the refcount never reaches zero.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/bpf-lirc.c