mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
[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>
This commit is contained in:
parent
ccc5429f7b
commit
2a518f8e87
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue