mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
wm831x_backup: Fix wrong 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]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
a2d0dbb4b5
commit
c909fc8573
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue