summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAditya Garg <gargaditya@linux.microsoft.com>2026-07-27 04:37:59 -0700
committerJakub Kicinski <kuba@kernel.org>2026-07-29 17:46:35 -0700
commite67cc80b50f587cd1d8ffc8989dcec3291720bc3 (patch)
treebd42bbac3ff7d5d57678b5787f21f314dfff95da /tools
parent4107af9967e9ec049091b8f009374c4981d458cf (diff)
net: mana: Return error code from mana_create_rxq()
mana_create_rxq() returns a struct mana_rxq pointer and returns NULL on any failure. The caller, mana_add_rx_queues(), cannot tell what went wrong and hardcodes the error as -ENOMEM. As a result the actual failure reported by the lower layers (for example -EPROTO from a failed HW request) is masked and every RX queue creation failure looks like an out-of-memory error. Return an ERR_PTR() encoded error code from mana_create_rxq() on failure instead of NULL. The caller now propagates the returned error code directly instead of substituting -ENOMEM. Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)") Signed-off-by: Aditya Garg <gargaditya@linux.microsoft.com> Reviewed-by: Joe Damato <joe@dama.to> Link: https://patch.msgid.link/20260727113759.2881500-1-gargaditya@linux.microsoft.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions