drivers: net: fbnic: Return the true error in fbnic_alloc_napi_vectors.
Subsystems (3)
PATCH 1/1 drivers: net: fbnic: Return the true error in fbnic_alloc_napi_vectors.
The error case in fbnic_alloc_napi_vectors defaulted to returning ENOMEM. This can mask the true error case, causing confusion.
Signed-off-by Jakub Kicinski <[email protected]>
Signed-off-by Dimitri Daskalakis <[email protected]>
--- drivers/net/ethernet/meta/fbnic/fbnic_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c +1 -1
@@ -1808,7 +1808,7 @@ int fbnic_alloc_napi_vectors(struct fbnic_net *fbn) free_vectors:fbnic_free_napi_vectors (fbn); -return -ENOMEM ; +return err; } static void fbnic_free_ring_resources(struct device *dev,
Signature · 1 line
2.47.3
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 24 Nov 2025 12:05:18 -0800 you wrote:
The error case in
fbnic_alloc_napi_vectorsdefaulted to returning ENOMEM. This can mask the true error case, causing confusion.Signed-off-by Jakub Kicinski <[email protected]>Signed-off-by Dimitri Daskalakis <[email protected]>--- drivers/net/ethernet/meta/fbnic/fbnic_txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net-next] drivers: net: fbnic: Return the true error in fbnic_alloc_napi_vectors.
https://git.kernel.org/netdev/net-next/c/ab084f0b8d6d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html