summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb/dw2102.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2016-03-07 11:26:55 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-04-13 22:05:48 +0200
commit2a518f8e87a718b482a5ac7ffa9590cc7d86004f (patch)
treed8ec99cd9fea80d78db9551ef97d1193b6ed82f7 /drivers/media/usb/dvb-usb/dw2102.c
parent[media] cx231xx: return proper error codes at cx231xx-417.c (diff)
downloadlinux-2a518f8e87a718b482a5ac7ffa9590cc7d86004f.tar.xz
linux-2a518f8e87a718b482a5ac7ffa9590cc7d86004f.zip
[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@codethink.co.uk> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb/dw2102.c')
-rw-r--r--drivers/media/usb/dvb-usb/dw2102.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb/dw2102.c b/drivers/media/usb/dvb-usb/dw2102.c
index 6d0dd859d684..1f35f3decf39 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;
}