]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: maps: gpio-addr-flash: Fix ioremapped size
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Thu, 4 Oct 2018 13:01:04 +0000 (15:01 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 5 Oct 2018 08:20:32 +0000 (10:20 +0200)
commit66b8faa41e4241a9495f075dc3348b235a37eb08
tree7b9a6591d04631ae9fb5b67b7ee3f8542c033158
parent931612d338e4f850e38ab70cd17e2155ed09d4c3
mtd: maps: gpio-addr-flash: Fix ioremapped size

We should only iomap the area of the chip that is memory mapped.
Otherwise we could be mapping devices beyond the memory space or that
belong to other devices.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Fixes: 30c548d1ea0a ("mtd: maps: gpio-addr-flash: fix warnings and make more portable")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/maps/gpio-addr-flash.c