devdata->backup.name points to devdata->name, the memory for devdata->name is
part of struct wm831x_backup. Thus remove kfree call for devdata->backup.name.
Signed-off-by: Axel Lin <[email protected]>
---
drivers/power/wm831x_backup.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/power/wm831x_backup.c b/drivers/power/wm831x_backup.c
index 58cbb00..56fb509 100644
--- a/drivers/power/wm831x_backup.c
+++ b/drivers/power/wm831x_backup.c
@@ -207,7 +207,6 @@ static int wm831x_backup_remove(struct platform_device *pdev)
struct wm831x_backup *devdata = platform_get_drvdata(pdev);
power_supply_unregister(&devdata->backup);
- kfree(devdata->backup.name);
return 0;
}
--
1.8.1.2
On Sat, May 04, 2013 at 01:57:55PM +0800, Axel Lin wrote:
> devdata->backup.name points to devdata->name, the memory for devdata->name is
> part of struct wm831x_backup. Thus remove kfree call for devdata->backup.name.
Acked-by: Mark Brown <[email protected]>
On Mon, May 06, 2013 at 11:34:48AM +0100, Mark Brown wrote:
> On Sat, May 04, 2013 at 01:57:55PM +0800, Axel Lin wrote:
> > devdata->backup.name points to devdata->name, the memory for devdata->name is
> > part of struct wm831x_backup. Thus remove kfree call for devdata->backup.name.
>
> Acked-by: Mark Brown <[email protected]>
Applied, thanks a lot!
Anton