[PATCH] i2c: fix memleak caused by my last patch fo the adv7175.c driver
drivers/media/video/adv7175.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/media/video/adv7175.c b/drivers/media/video/adv7175.c
--- a/drivers/media/video/adv7175.c Wed Apr 2 16:01:53 2003
+++ b/drivers/media/video/adv7175.c Wed Apr 2 16:01:53 2003
@@ -231,7 +231,7 @@
static int adv717x_detach(struct i2c_client *client)
{
i2c_detach_client(client);
- i2c_get_clientdata(client);
+ kfree(i2c_get_clientdata(client));
kfree(client);
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/