diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-10 09:40:31 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-10 09:40:31 +0000 |
commit | 3b2debfac58aca6943b589154043995420ea3d74 (patch) | |
tree | bcc259a82b65e54e6fb7591efad9c0b11d44457a /linux/drivers/media/video/bt8xx | |
parent | 0cfed3d3248dd4ddfa340199ae3e3c33d4bb43be (diff) | |
download | mediapointer-dvb-s2-3b2debfac58aca6943b589154043995420ea3d74.tar.gz mediapointer-dvb-s2-3b2debfac58aca6943b589154043995420ea3d74.tar.bz2 |
bttv: Fix memory leak in radio_release
From: Robert Fitzsimons <robfitz@273k.net>
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 'linux/drivers/media/video/bt8xx')
-rw-r--r-- | linux/drivers/media/video/bt8xx/bttv-driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv-driver.c b/linux/drivers/media/video/bt8xx/bttv-driver.c index c1173a94a..303422115 100644 --- a/linux/drivers/media/video/bt8xx/bttv-driver.c +++ b/linux/drivers/media/video/bt8xx/bttv-driver.c @@ -3506,6 +3506,9 @@ static int radio_release(struct inode *inode, struct file *file) struct bttv *btv = fh->btv; struct rds_command cmd; + file->private_data = NULL; + kfree(fh); + btv->radio_user--; bttv_call_i2c_clients(btv, RDS_CMD_CLOSE, &cmd); |