[media] rc: Fix double free in gpio_ir_recv_remove()
authorJesper Juhl <jj@chaosbits.net>
Tue, 25 Nov 2008 13:57:54 +0000 (10:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 18:28:58 +0000 (16:28 -0200)
commitbbe2a1d32f40c01ca1a7e7795e20ca06f87ffc9b
tree1f448364296d0be3d7ddb15f1fc31e1c8abef708
parente5d85b9ac3133f67460ea5b2d4e33e0473d6eb4b
[media] rc: Fix double free in gpio_ir_recv_remove()

Since rc_unregister_device() frees its argument there's no need to
subsequently call rc_free_device() on the same variable - in fact it's
a double free bug.
Easily fixed by just removing the rc_free_device() call.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/gpio-ir-recv.c