Last active
August 12, 2021 22:00
-
-
Save Uplink03/e97343ab9e5e5143b2d5cac74a3f614d to your computer and use it in GitHub Desktop.
Kernel Oops dw2102
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/media/usb/dvb-usb/dw2102.c b/drivers/media/usb/dvb-usb/dw2102.c | |
index 346946f..0aa19cd 100644 | |
--- a/drivers/media/usb/dvb-usb/dw2102.c | |
+++ b/drivers/media/usb/dvb-usb/dw2102.c | |
@@ -2425,18 +2425,20 @@ static void dw2102_disconnect(struct usb_interface *intf) | |
struct dw2102_state *st = (struct dw2102_state *)d->priv; | |
struct i2c_client *client; | |
- /* remove I2C client for tuner */ | |
- client = st->i2c_client_tuner; | |
- if (client) { | |
- module_put(client->dev.driver->owner); | |
- i2c_unregister_device(client); | |
- } | |
+ if (st) { | |
+ /* remove I2C client for tuner */ | |
+ client = st->i2c_client_tuner; | |
+ if (client) { | |
+ module_put(client->dev.driver->owner); | |
+ i2c_unregister_device(client); | |
+ } | |
- /* remove I2C client for demodulator */ | |
- client = st->i2c_client_demod; | |
- if (client) { | |
- module_put(client->dev.driver->owner); | |
- i2c_unregister_device(client); | |
+ /* remove I2C client for demodulator */ | |
+ client = st->i2c_client_demod; | |
+ if (client) { | |
+ module_put(client->dev.driver->owner); | |
+ i2c_unregister_device(client); | |
+ } | |
} | |
dvb_usb_device_exit(intf); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Patch source: https://bugzilla.kernel.org/show_bug.cgi?id=197731
As root:
Get firmware from https://github.com/OpenELEC/dvb-firmware
Scan with
w_scan
. E.g.w_scan -f s -s S28E2
for UK Freesat