Christophe JAILLET 69cc821e89 ACPI: scan: Fix a memory leak in an error handling path
[ Upstream commit 0c8bd174f0fc131bc9dfab35cd8784f59045da87 ]

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

Fixes: eb50aaf960e3 ("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
2018-06-05 10:08:27 -07:00
2020-11-22 10:02:26 +01: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