[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210414075127.GA2180@ninjato>
Date: Wed, 14 Apr 2021 09:51:27 +0200
From: Wolfram Sang <wsa@...nel.org>
To: Qinglang Miao <miaoqinglang@...wei.com>
Cc: Michal Simek <michal.simek@...inx.com>,
Dong Aisheng <aisheng.dong@....com>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
Oleksij Rempel <linux@...pel-privat.de>,
Vignesh R <vigneshr@...com>,
Aaro Koskinen <aaro.koskinen@....fi>,
Tony Lindgren <tony@...mide.com>,
Orson Zhai <orsonzhai@...il.com>,
Baolin Wang <baolin.wang7@...il.com>,
Chunyan Zhang <zhang.lyra@...il.com>,
Pierre-Yves MORDRET <pierre-yves.mordret@...com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...com>,
linux-arm-kernel@...ts.infradead.org, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/8] i2c: fix reference leak when pm_runtime_get_sync
fails
On Tue, Dec 01, 2020 at 05:29:24PM +0800, Qinglang Miao wrote:
> pm_runtime_get_sync will increment the PM reference count
> even failed. Forgetting to putting operation will result
> in a reference leak here.
>
> Replace it with pm_runtime_resume_and_get to keep usage
> counter balanced.
>
> BTW, pm_runtime_resume_and_get is introduced in v5.10-rc5 as
> dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get
> to dealwith usage counter")
>
> Qinglang Miao (8):
> i2c: cadence: fix reference leak when pm_runtime_get_sync fails
> i2c: img-scb: fix reference leak when pm_runtime_get_sync fails
> i2c: imx-lpi2c: fix reference leak when pm_runtime_get_sync fails
> i2c: imx: fix reference leak when pm_runtime_get_sync fails
> i2c: omap: fix reference leak when pm_runtime_get_sync fails
> i2c: sprd: fix reference leak when pm_runtime_get_sync fails
> i2c: stm32f7: fix reference leak when pm_runtime_get_sync fails
> i2c: xiic: fix reference leak when pm_runtime_get_sync fails
I applied this series now to for-next, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists