From: Johan Hovold Date: Thu, 1 Jun 2017 07:45:59 +0000 (-0300) Subject: mceusb: fix memory leaks in error path X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34760dbbcc560d38fdb1c1e57572a965c2f8aca5;p=pandora-kernel.git mceusb: fix memory leaks in error path commit 2d5a6ce71c72d98d4f7948672842e3e8c265a8b7 upstream. 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: Jarod Wilson Signed-off-by: Johan Hovold Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab [bwh: Backported to 3.2: - Add check on urb_type, as async_buf and async_urb aren't always allocated - Adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed