Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a518f8e authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent ccc5429f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
}