Re: [PATCH v3] mtd: nxp-spifi: release flash_np in nxp_spifi_probe()

2018-07-07 Thread Boris Brezillon
On Wed, 9 May 2018 18:11:20 +0300 Alexey Khoroshilov wrote: > nxp_spifi_probe() increments refcnt of SPI flash device node by > of_get_next_available_child() and leaves it undecremented on both > successful and error paths. > > Found by Linux Driver Verification project (linuxtesting.org). >

Re: [PATCH v3] mtd: nxp-spifi: release flash_np in nxp_spifi_probe()

2018-07-07 Thread Boris Brezillon
On Wed, 9 May 2018 18:11:20 +0300 Alexey Khoroshilov wrote: > nxp_spifi_probe() increments refcnt of SPI flash device node by > of_get_next_available_child() and leaves it undecremented on both > successful and error paths. > > Found by Linux Driver Verification project (linuxtesting.org). >

[PATCH v3] mtd: nxp-spifi: release flash_np in nxp_spifi_probe()

2018-05-09 Thread Alexey Khoroshilov
nxp_spifi_probe() increments refcnt of SPI flash device node by of_get_next_available_child() and leaves it undecremented on both successful and error paths. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- v3: Move

[PATCH v3] mtd: nxp-spifi: release flash_np in nxp_spifi_probe()

2018-05-09 Thread Alexey Khoroshilov
nxp_spifi_probe() increments refcnt of SPI flash device node by of_get_next_available_child() and leaves it undecremented on both successful and error paths. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- v3: Move of_node_put() before return