[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1457346415-9698-1-git-send-email-sudipm.mukherjee@gmail.com>
Date: Mon, 7 Mar 2016 15:56:55 +0530
From: Sudip Mukherjee <sudipm.mukherjee@...il.com>
To: Mauro Carvalho Chehab <mchehab@....samsung.com>
Cc: linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
Sudip Mukherjee <sudipm.mukherjee@...il.com>
Subject: [PATCH] [media] dw2102: fix unreleased firmware
On the particular case when the product id is 0x2101 we have requested
for a firmware but after processing it we missed releasing it.
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@...ethink.co.uk>
---
drivers/media/usb/dvb-usb/dw2102.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/media/usb/dvb-usb/dw2102.c b/drivers/media/usb/dvb-usb/dw2102.c
index 6d0dd85..1f35f3d 100644
--- a/drivers/media/usb/dvb-usb/dw2102.c
+++ b/drivers/media/usb/dvb-usb/dw2102.c
@@ -1843,6 +1843,9 @@ static int dw2102_load_firmware(struct usb_device *dev,
msleep(100);
kfree(p);
}
+
+ if (le16_to_cpu(dev->descriptor.idProduct) == 0x2101)
+ release_firmware(fw);
return ret;
}
--
1.9.1
Powered by blists - more mailing lists