Re: [PATCH] mtd: rawnand: gpmi: fix reference count leak due to pm_runtime_get_sync

2020-06-15 Thread Miquel Raynal
Hi Aditya, Aditya Pakki wrote on Sat, 13 Jun 2020 22:43:00 -0500: > On calling pm_runtime_get_sync() the reference count of the device > is incremented. In case of failure, decrement the > reference count before returning the error. > > Signed-off-by: Aditya Pakki Missing Fixes/Stable tags

[PATCH] mtd: rawnand: gpmi: fix reference count leak due to pm_runtime_get_sync

2020-06-13 Thread Aditya Pakki
On calling pm_runtime_get_sync() the reference count of the device is incremented. In case of failure, decrement the reference count before returning the error. Signed-off-by: Aditya Pakki --- drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 8 ++-- 1 file changed, 6 insertions(+), 2