[media] mceusb: fix memory leaks in error path
authorJohan Hovold <johan@kernel.org>
Thu, 1 Jun 2017 07:45:59 +0000 (04:45 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Jun 2017 12:39:19 +0000 (09:39 -0300)
commit2d5a6ce71c72d98d4f7948672842e3e8c265a8b7
tree9a77f702399a0a1dea598ddd63b993b992915a7e
parent4e66a52a2e4c832dfa35a39204d0f7ce717d4a4a
[media] mceusb: fix memory leaks in error path

Fix urb and transfer-buffer leaks in an urb-submission error path which
may be hit when a device is disconnected.

Fixes: 66e89522aff7 ("V4L/DVB: IR: add mceusb IR receiver driver")

Cc: stable <stable@vger.kernel.org> # 2.6.36
Cc: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/mceusb.c