mtd: nettel: do not ignore mtd_device_register() failure in nettel_init()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 13 Aug 2015 22:37:47 +0000 (01:37 +0300)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 19 Aug 2015 00:33:34 +0000 (17:33 -0700)
commit11c7e0e2f91fdfdf9f7b4d107bc93d6c298c95fe
tree534bb5782d5f6437fffe434cc81f22fc60973cb4
parentaf83a67cad1452d48ecd77792f9218f26c445650
mtd: nettel: do not ignore mtd_device_register() failure in nettel_init()

If mtd_device_register() fails in nettel_init(), iomap left mapped.

The patch adds failure handling for mtd_device_register().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/nettel.c
This page took 0.024973 seconds and 5 git commands to generate.