aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/bt8xx/bttv-driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c
index 79da9d01d715..2ca3e9cfb2bb 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -3463,6 +3463,9 @@ static int radio_release(struct inode *inode, struct file *file)
3463 struct bttv *btv = fh->btv; 3463 struct bttv *btv = fh->btv;
3464 struct rds_command cmd; 3464 struct rds_command cmd;
3465 3465
3466 file->private_data = NULL;
3467 kfree(fh);
3468
3466 btv->radio_user--; 3469 btv->radio_user--;
3467 3470
3468 bttv_call_i2c_clients(btv, RDS_CMD_CLOSE, &cmd); 3471 bttv_call_i2c_clients(btv, RDS_CMD_CLOSE, &cmd);