[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210914190156.56509462@xps13>
Date: Tue, 14 Sep 2021 19:01:56 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Xin Xiong <xiongx18@...an.edu.cn>
Cc: Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
yuanxzhang@...an.edu.cn, Xiyu Yang <xiyuyang19@...an.edu.cn>,
Xin Tan <tanxin.ctf@...il.com>
Subject: Re: [PATCH] drivers/mtd/nand: fix reference count leaks in
ebu_nand_probe
Hello,
xiongx18@...an.edu.cn wrote on Sat, 11 Sep 2021 00:53:16 +0800:
> The reference counting issue happens in several error handling paths
> on two refcounted object related to the "ebu_host" object (dma_tx,
> dma_rx). In these paths, the function forgets to balance one or both
> objects' reference count. For example, when request dma tx chan fails,
> the function forgets to decrease the refcount of "ebu_host->dma_rx"
> increased by dma_request_chan(), causing refcount leaks. What's more,
> the "ebu_host->clk" object also need to be handled correctly.
>
> Fix this issue by keeping the return value and jumping to
> "err_cleanup_dma" label.
I think it has already been fixed upstream:
0792ec82175e ("mtd: rawnand: intel: Fix error handling in probe")
Thanks,
Miquèl
Powered by blists - more mailing lists