Liguang Zhang f3a68bfc2d ACPI: AMBA: Fix resource name in /proc/iomem
[ Upstream commit 7718629432676b5ebd9a32940782fe297a0abf8d ]

In function amba_handler_attach(), dev->res.name is initialized by
amba_device_alloc. But when address_found is false, dev->res.name is
assigned to null value, which leads to wrong resource name display in
/proc/iomem, "<BAD>" is seen for those resources.

Signed-off-by: Liguang Zhang <zhangliguang@linux.alibaba.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:21:14 +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