From: Laurent Pinchart Date: Thu, 2 May 2013 13:09:07 +0000 (-0300) Subject: [media] tvp514x: Fix double free X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c7e3cc3ca1ff2fe1aeffd2ba642548d79f9a73dc;p=openwrt%2Fstaging%2Fblogic.git [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 Acked-by: Lad, Prabhakar Signed-off-by: Mauro Carvalho Chehab --- 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