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 5cd3955cb8
.
Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
a53a45567c
commit
b9bc07a006
1 changed files with 3 additions and 0 deletions
|
@ -3463,6 +3463,9 @@ static int radio_release(struct inode *inode, struct file *file)
|
||||||
struct bttv *btv = fh->btv;
|
struct bttv *btv = fh->btv;
|
||||||
struct rds_command cmd;
|
struct rds_command cmd;
|
||||||
|
|
||||||
|
file->private_data = NULL;
|
||||||
|
kfree(fh);
|
||||||
|
|
||||||
btv->radio_user--;
|
btv->radio_user--;
|
||||||
|
|
||||||
bttv_call_i2c_clients(btv, RDS_CMD_CLOSE, &cmd);
|
bttv_call_i2c_clients(btv, RDS_CMD_CLOSE, &cmd);
|
||||||
|
|
Loading…
Reference in a new issue