Commit b9bc07a0 authored by Robert Fitzsimons's avatar Robert Fitzsimons Committed by Mauro Carvalho Chehab

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 5cd3955c.
Signed-off-by: default avatarRobert Fitzsimons <robfitz@273k.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent a53a4556
...@@ -3463,6 +3463,9 @@ static int radio_release(struct inode *inode, struct file *file) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment