mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-08 16:11:26 +00:00
Fix broken kfree() calls.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3017 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
6173738e40
commit
617cc1313e
1 file changed
+2
-2
@@ -313,7 +313,7 @@ adm1031_detect(struct i2c_adapter *adapter, int address,
|
||||
exit_detach:
|
||||
i2c_detach_client(new_client);
|
||||
exit_free:
|
||||
kfree(new_client);
|
||||
kfree(data);
|
||||
exit:
|
||||
return err;
|
||||
}
|
||||
@@ -328,7 +328,7 @@ static int adm1031_detach_client(struct i2c_client *client)
|
||||
return ret;
|
||||
}
|
||||
|
||||
kfree(client);
|
||||
kfree(data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user