summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-11-13 17:06:33 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-11-14 17:24:44 +0100
commit5c6533510335ab291dcc0e9cdb98e67b50f6b2e9 (patch)
tree1851d50a6c47428c3a3cfaedb424f9b9a7f6730f /drivers
parentMerge branch 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/k... (diff)
downloadlinux-5c6533510335ab291dcc0e9cdb98e67b50f6b2e9.tar.xz
linux-5c6533510335ab291dcc0e9cdb98e67b50f6b2e9.zip
V4L/DVB (9613): tvaudio: fix a memory leak
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/tvaudio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c
index b59e47272abf..3332df890f0b 100644
--- a/drivers/media/video/tvaudio.c
+++ b/drivers/media/video/tvaudio.c
@@ -1481,6 +1481,7 @@ static int chip_probe(struct i2c_client *client, const struct i2c_device_id *id)
}
if (desc->name == NULL) {
v4l_dbg(1, debug, client, "no matching chip description found\n");
+ kfree(chip);
return -EIO;
}
v4l_info(client, "%s found @ 0x%x (%s)\n", desc->name, client->addr<<1, client->adapter->name);