Commit b8c812b0 authored by Ricardo Ribalda Delgado's avatar Ricardo Ribalda Delgado Committed by Lee Jones
Browse files

mtd: physmap_of: Release resources on error



[ Upstream commit ef0de747 ]

During probe, if there was an error the memory region and the memory
map were not properly released.This can lead a system unusable if
deferred probe is in use.

Replace mem_request and map with devm_ioremap_resource

Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Change-Id: I70e3f8fba8182a949138c8067cdfd4034bf79db1
parent 6bb003a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment