linux/drivers/net/ethernet/microsoft/mana
Aditya Garg e67cc80b50 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: ca9c54d2d6 ("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>
2026-07-29 17:46:35 -07:00
..
gdma_main.c net: mana: Optimize irq affinity for low vcpu configs 2026-06-25 09:10:35 -07:00
hw_channel.c net: mana: validate rx_req_idx to prevent out-of-bounds array access 2026-05-21 08:14:11 -07:00
Makefile net: mana: Add XDP support 2021-11-22 13:20:19 +00:00
mana_bpf.c net: mana: Fall back to standard MTU when PF reports adapter_mtu of 0 2026-06-24 17:56:44 -07:00
mana_en.c net: mana: Return error code from mana_create_rxq() 2026-07-29 17:46:35 -07:00
mana_ethtool.c net: ethtool: keep rtnl_lock for ops using ethtool_op_get_link() 2026-06-25 10:18:34 -07:00
shm_channel.c net: mana: Fix crash from unvalidated SHM offset read from BAR0 during FLR 2026-05-05 15:43:08 +02:00