Re: [PATCH] More i2c driver changes for 2.5.66

Greg KH (greg@kroah.com)
Wed, 2 Apr 2003 16:15:57 -0800


ChangeSet 1.977.29.3, 2003/03/31 15:25:48-08:00, greg@kroah.com

[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/