Files
linux/drivers/acpi
Christophe JAILLET 69cc821e89 ACPI: scan: Fix a memory leak in an error handling path
[ Upstream commit 0c8bd174f0 ]

If 'acpi_device_set_name()' fails, we must free
'acpi_device_bus_id->bus_id' or there is a (potential) memory leak.

Fixes: eb50aaf960 ("ACPI: scan: Use unique number for instance_no")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 10:59:45 +02:00
..
2020-03-25 08:06:13 +01:00
2019-05-14 19:17:53 +02:00
2016-04-27 23:42:57 +02:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2020-11-22 10:02:26 +01:00
2015-07-08 02:27:32 +02:00
2018-05-17 17:28:09 +01:00
2019-12-17 20:35:05 +01:00
2018-05-02 13:01:08 +02:00
2020-06-30 23:17:15 -04:00