Commit b50b3e07 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Mauro Carvalho Chehab

[media] dvb_usb_lmedm04: don't crash if firmware is not loaded

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: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Tested-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 397e9723
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment