Commit 5c653351 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (9613): tvaudio: fix a memory leak

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f21f237c
...@@ -1481,6 +1481,7 @@ static int chip_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -1481,6 +1481,7 @@ static int chip_probe(struct i2c_client *client, const struct i2c_device_id *id)
} }
if (desc->name == NULL) { if (desc->name == NULL) {
v4l_dbg(1, debug, client, "no matching chip description found\n"); v4l_dbg(1, debug, client, "no matching chip description found\n");
kfree(chip);
return -EIO; return -EIO;
} }
v4l_info(client, "%s found @ 0x%x (%s)\n", desc->name, client->addr<<1, client->adapter->name); v4l_info(client, "%s found @ 0x%x (%s)\n", desc->name, client->addr<<1, client->adapter->name);
......
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