Christophe JAILLET 6901a4f795 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:40:32 +02:00
..
2020-04-02 17:20:26 +02:00
2016-11-11 23:23:02 +01:00
2020-11-22 09:58:15 +01:00
2016-10-10 02:20:43 +02:00
2016-10-03 20:11:49 -07:00
2019-12-21 10:42:05 +01:00
2020-06-30 15:38:44 -04:00
2016-07-19 12:32:39 -07:00