Subject: Re: [PATCH net] net: fec: Better handle pm_runtime_get() failing in .remove()

From: [email-masked]
Date: Fri, 12 May 2023 01:20:19 +0000

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email-masked]>:

On Wed, 10 May 2023 22:00:20 +0200 you wrote:
> In the (unlikely) event that pm_runtime_get() (disguised as
> pm_runtime_resume_and_get()) fails, the remove callback returned an
> error early. The problem with this is that the driver core ignores the
> error value and continues removing the device. This results in a
> resource leak. Worse the devm allocated resources are freed and so if a
> callback of the driver is called later the register mapping is already
> gone which probably results in a crash.
> 
> [...]

Here is the summary with links:
  - [net] net: fec: Better handle pm_runtime_get() failing in .remove()
    https://git.kernel.org/netdev/net/c/f816b9829b19

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html