aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx/bttv-driver.c
diff options
context:
space:
mode:
authorRobert Fitzsimons <robfitz@273k.net>2008-04-10 08:40:31 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:40 -0400
commitb9bc07a006ae94d7b3dd5db873bcf10ceb749253 (patch)
tree4407f759d03c30c02bc9bfe17f33399a953b0551 /drivers/media/video/bt8xx/bttv-driver.c
parenta53a45567cb4879c46bb019757cdeb1b1ecabbd5 (diff)
V4L/DVB (7579): bttv: Fix memory leak in radio_release
Fix the leak of the bttv_fh structure allocated in radio_open which was introduced by commit 5cd3955cb8adfc1edf481e9e1cb2289db50ccacb. Signed-off-by: Robert Fitzsimons <robfitz@273k.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-driver.c')
-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);