power_supply: wm831x_backup: Remove kfree call for devdata->backup.name
PATCH 1/1 power_supply: wm831x_backup: Remove kfree call for devdata->backup.name
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(-)
drivers/power/wm831x_backup.c +0 -1
@@ -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 ; }
Signature · 1 line
1.8.1.2
Quoted 2 lines · Axel Lin
devdata->backup.namepoints todevdata->name, the memory fordevdata->nameis part of structwm831x_backup. Thus remove kfree call fordevdata->backup.name.
Acked-by Mark Brown <[email protected]>
Anton Vorontsov
AppliedQuoted 5 lines · Mark Brown
Quoted 2 lines · Axel Lin
devdata->backup.namepoints todevdata->name, the memory fordevdata->nameis part of structwm831x_backup. Thus remove kfree call fordevdata->backup.name.Acked-by Mark Brown <[email protected]>
Applied, thanks a lot!
Anton