Re: [PATCH v3] mtd: nand: vf610: fix error handling in vf610_nfc_probe()

2018-01-30 Thread Boris Brezillon
On Sat, 27 Jan 2018 01:32:41 +0300 Alexey Khoroshilov wrote: > vf610_nfc_probe() misses error handling of mtd_device_register() > and contains unneeded of_node_put() on error path. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov > --- >

[PATCH v3] mtd: nand: vf610: fix error handling in vf610_nfc_probe()

2018-01-26 Thread Alexey Khoroshilov
vf610_nfc_probe() misses error handling of mtd_device_register() and contains unneeded of_node_put() on error path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- v2: Add nand_cleanup() to undone nand_scan_tail() as Boris Brezillon noted. v3: