diff options
author | Luis Henriques <henrix@camandro.org> | 2016-11-24 00:40:36 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2016-12-01 03:30:24 +0100 |
commit | 3502fbcc25eb67db96fea35abe721c82aa1f4ff3 (patch) | |
tree | b2e83f7a028bf70f05b4c2c9756a4aff562570d1 /scripts/sign-file.c | |
parent | Merge tag 'spi-nor/for-4.10' of git://github.com/spi-nor/linux (diff) | |
download | linux-3502fbcc25eb67db96fea35abe721c82aa1f4ff3.tar.xz linux-3502fbcc25eb67db96fea35abe721c82aa1f4ff3.zip |
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>
Diffstat (limited to 'scripts/sign-file.c')
0 files changed, 0 insertions, 0 deletions