diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-03-18 06:40:16 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-04-10 17:19:33 +0200 |
commit | 1285b0a30d530d0807c229c6aad73ed1966d75ad (patch) | |
tree | 07dca32be2ecd1c28bcbd8187b0ea09e9500fa3b /virt | |
parent | power: reset: at91-shdwc: add new shutdown controller driver (diff) | |
download | linux-1285b0a30d530d0807c229c6aad73ed1966d75ad.tar.xz linux-1285b0a30d530d0807c229c6aad73ed1966d75ad.zip |
power/max8925: freeing wrong variable
We were freeing "info->battery" instead of "info->usb", which leads to
an OOps and a resource leak.
The labels were wonky, "out_battery" did release the battery but out_usb
did not release usb. I was introducing a call to free usb so it sort
conflicted with existing misleading name. I renamed them.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions