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>
Thu, 26 Jul 2018 12:39:18 +0000 (08:39 -0400)
commit92cab799bbc6fa1fca84bd1692285a5f926c17e9
tree041e50983017f651d2f4937d1fb51b1947c32aca
parent0ca54b29054151b7a52cbb8904732280afe5a302
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