Christophe JAILLET dafd4c0b5e 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-19 10:08:30 +02:00
..
2020-03-25 08:25:58 +01:00
2019-06-23 09:23:33 +02:00
2020-11-22 10:14:12 +01:00
2019-08-16 14:32:26 -07:00
2020-10-17 10:11:22 +02:00
2019-12-17 19:56:33 +01:00
2020-06-30 15:37:06 -04:00