Searched hist:"3502 fbcc25eb67db96fea35abe721c82aa1f4ff3" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/mtd/maps/ |
H A D | sc520cdp.c | diff 3502fbcc25eb67db96fea35abe721c82aa1f4ff3 Thu Nov 24 00:40:36 CET 2016 Luis Henriques <henrix@camandro.org> mtd: maps: add missing iounmap() in error path
This patch was triggered by the following Coccinelle error:
./drivers/mtd/maps/sc520cdp.c:246:3-9: \ ERROR: missing iounmap; ioremap on line 242 \ and execution via conditional on line 244
Since do_map_probe() is also invoked in this loop, it is also necessary to map_destroy() any initialised struct mtd_info.
Signed-off-by: Luis Henriques <henrix@camandro.org> Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
|