diff options
-rw-r--r-- | linux/drivers/media/dvb/frontends/ves1x93.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/ves1x93.c b/linux/drivers/media/dvb/frontends/ves1x93.c index 5563e2578..992ca9e45 100644 --- a/linux/drivers/media/dvb/frontends/ves1x93.c +++ b/linux/drivers/media/dvb/frontends/ves1x93.c @@ -653,7 +653,9 @@ static int attach_adapter(struct i2c_adapter *adapter) static int detach_client(struct i2c_client *client) { struct ves1x93_state *state = (struct ves1x93_state*)i2c_get_clientdata(client); + dvb_unregister_frontend_new(ves1x93_ioctl, state->dvb); i2c_detach_client(client); + BUG_ON(state->dvb); kfree(client); kfree(state); return 0; |