diff options
author | Misono Tomohiro <[email protected]> | 2020-06-25 13:32:42 +0900 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2020-06-25 16:06:06 -0700 |
commit | 8b97f9922211c44a739c5cbd9502ecbb9f17f6d1 (patch) | |
tree | 2904c7078b62cf6ab185cbb9331f4388ff860817 /lib/mpi/mpi-sub-ui.c | |
parent | 016983d138cbe99a5c0aaae0103ee88f5300beb3 (diff) |
hwmon: (acpi_power_meter) Fix potential memory leak in acpi_power_meter_add()
Although it rarely happens, we should call free_capabilities()
if error happens after read_capabilities() to free allocated strings.
Fixes: de584afa5e188 ("hwmon driver for ACPI 4.0 power meters")
Signed-off-by: Misono Tomohiro <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions