Skip to content

Commit

Permalink
wm831x_backup: Fix wrong kfree call for devdata->backup.name
Browse files Browse the repository at this point in the history
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 <axel.lin@ingics.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
  • Loading branch information
Axel Lin authored and Anton Vorontsov committed May 10, 2013
1 parent a2d0dbb commit c909fc8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/power/wm831x_backup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c909fc8

Please sign in to comment.