summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-05-02 10:09:07 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-05-21 07:50:13 -0300
commitc7e3cc3ca1ff2fe1aeffd2ba642548d79f9a73dc (patch)
tree37ce27f4abebf4366a0767ca0d698e4a37d8061c /drivers/media/i2c
parent9462550f66dfbbb2eb0961af2c9d2c3e000d9239 (diff)
downloadblackbird-obmc-linux-c7e3cc3ca1ff2fe1aeffd2ba642548d79f9a73dc.tar.gz
blackbird-obmc-linux-c7e3cc3ca1ff2fe1aeffd2ba642548d79f9a73dc.zip
[media] tvp514x: Fix double free
The tvp514x data structure is allocated using devm_kzalloc(). Freeing it explictly would result in a double free. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/tvp514x.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/i2c/tvp514x.c b/drivers/media/i2c/tvp514x.c
index ab8f3fee7e94..7438e015d879 100644
--- a/drivers/media/i2c/tvp514x.c
+++ b/drivers/media/i2c/tvp514x.c
@@ -1120,7 +1120,6 @@ tvp514x_probe(struct i2c_client *client, const struct i2c_device_id *id)
if (ret < 0) {
v4l2_err(sd, "%s decoder driver failed to register !!\n",
sd->name);
- kfree(decoder);
return ret;
}
#endif
OpenPOWER on IntegriCloud