mirror of
https://github.com/torvalds/linux.git
synced 2026-09-20 01:20:03 +02:00
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:
|
||
|---|---|---|
| .. | ||
| gdma_main.c | ||
| hw_channel.c | ||
| Makefile | ||
| mana_bpf.c | ||
| mana_en.c | ||
| mana_ethtool.c | ||
| shm_channel.c | ||