Re: [PATCH] atm: lanai: dont run lanai_dev_close if not open

From
patchwork-bot+netdevbpf@kernel.org
Date
2021-03-02 07:09:50
Also in
lkml
Reply to
Tong Zhang, 2021-02-28
Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Sat, 27 Feb 2021 22:55:50 -0500 you wrote:
lanai_dev_open() can fail. When it fail, lanai->base is unmapped and the
pci device is disabled. The caller, lanai_init_one(), then tries to run
atm_dev_deregister(). This will subsequently call lanai_dev_close() and
use the already released MMIO area.

To fix this issue, set the lanai->base to NULL if open fail,
and test the flag in lanai_dev_close().

[...]
Here is the summary with links:
  - atm: lanai: dont run lanai_dev_close if not open
    https://git.kernel.org/netdev/net/c/a2bd45834e83

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

Thread (2 messages) 2 messages, 2 authors, last reply 2021-03-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help