提交 2a518f8e 编写于 作者: S Sudip Mukherjee 提交者: Mauro Carvalho Chehab

[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: NSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 ccc5429f
...@@ -1843,6 +1843,9 @@ static int dw2102_load_firmware(struct usb_device *dev, ...@@ -1843,6 +1843,9 @@ static int dw2102_load_firmware(struct usb_device *dev,
msleep(100); msleep(100);
kfree(p); kfree(p);
} }
if (le16_to_cpu(dev->descriptor.idProduct) == 0x2101)
release_firmware(fw);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册