Skip to content

Commit

Permalink
[media] dvb_usb_lmedm04: don't crash if firmware is not loaded
Browse files Browse the repository at this point in the history
There is a missing error handling when no firmware file found.

It seems that this is more of a problem with udev-182+.

However, so far udev-182 is only a problem on first ever plug.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Tested-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Malcolm Priestley authored and Mauro Carvalho Chehab committed Aug 12, 2012
1 parent 397e972 commit b50b3e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/dvb/dvb-usb/lmedm04.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,10 @@ static int lme_firmware_switch(struct usb_device *udev, int cold)
fw_lme = fw_c_rs2000;
ret = request_firmware(&fw, fw_lme, &udev->dev);
dvb_usb_lme2510_firmware = TUNER_RS2000;
if (ret == 0)
break;
info("FRM No Firmware Found - please install");
cold_fw = 0;
break;
default:
fw_lme = fw_c_s7395;
Expand Down

0 comments on commit b50b3e0

Please sign in to comment.