Commit 0be1a57e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] i2c: fix memleak caused by my last patch fo the adv7175.c driver

parent d5f26790
......@@ -231,7 +231,7 @@ int adv717x_probe(struct i2c_adapter *adap)
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;
}
......
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