Thread (2 messages) flat view 2 messages, 2 authors, 2021-07-25

Re: [net PATCH] octeontx2-pf: Fix interface down flag on error

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-07-25 08:30:21
Also in: lkml

Hello:

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

On Sun, 25 Jul 2021 13:29:03 +0530 you wrote:
In the existing code while changing the number of TX/RX
queues using ethtool the PF/VF interface resources are
freed and reallocated (otx2_stop and otx2_open is called)
if the device is in running state. If any resource allocation
fails in otx2_open, driver free already allocated resources
and return. But again, when the number of queues changes
as the device state still running oxt2_stop is called.
In which we try to free already freed resources leading
to driver crash.
This patch fixes the issue by setting the INTF_DOWN flag on
error and free the resources in otx2_stop only if the flag is
not set.

[...]
Here is the summary with links:
  - [net] octeontx2-pf: Fix interface down flag on error
    https://git.kernel.org/netdev/net/c/69f0aeb13bb5

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help