Skip to content
Commit 11c7e0e2 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Brian Norris
Browse files

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: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent af83a67c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment