Re: [PATCH net] wan: wanxl: Only reset hardware after BAR mapping
From: patchwork-bot+netdevbpf
Date: Tue Jul 21 2026 - 07:33:52 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Wed, 8 Jul 2026 22:34:15 +0800 you wrote:
> wanxl_pci_init_one() stores the freshly allocated card in driver data
> before the PLX BAR is mapped. Several early probe failures then unwind
> through wanxl_pci_remove_one(), including failure to allocate the coherent
> status area or to restore the DMA mask.
>
> wanxl_pci_remove_one() unconditionally calls wanxl_reset(), and
> wanxl_reset() dereferences card->plx. On those early failures card->plx
> is still NULL, so the error path can dereference a NULL MMIO pointer.
>
> [...]
Here is the summary with links:
- [net] wan: wanxl: Only reset hardware after BAR mapping
https://git.kernel.org/netdev/net/c/91957b89da99
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html