diff options
| author | Misono Tomohiro <[email protected]> | 2020-06-25 04:32:42 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2020-06-25 23:06:06 +0000 |
| commit | 8b97f9922211c44a739c5cbd9502ecbb9f17f6d1 (patch) | |
| tree | 2904c7078b62cf6ab185cbb9331f4388ff860817 /drivers/pci/controller/pci-host-generic.c | |
| parent | hwmon: (max6697) Make sure the OVERT mask is set correctly (diff) | |
| download | kernel-8b97f9922211c44a739c5cbd9502ecbb9f17f6d1.tar.gz kernel-8b97f9922211c44a739c5cbd9502ecbb9f17f6d1.zip | |
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 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions
