]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: physmap_of: Release resources on error
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Thu, 4 Oct 2018 13:34:45 +0000 (15:34 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 5 Oct 2018 08:19:33 +0000 (10:19 +0200)
commit120262229228430ff0d5dff9d5379e4e448f3a8f
treeda065bbd4ac9849d0e1e36d1033309f4c5eeee80
parent952dd66e6d2ad5aabc04402efc7b4205146d9cda
mtd: physmap_of: Release resources on error

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: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/maps/physmap_of_core.c