From: Dimitri Daskalakis Date: Mon, 24 Nov 2025 20:05:18 +0000 (-0800) Subject: drivers: net: fbnic: Return the true error in fbnic_alloc_napi_vectors. X-Git-Tag: v6.19-rc1~170^2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab084f0b8d6d2ee4b1c6a28f39a2a7430bdfa7f0;p=thirdparty%2Fkernel%2Flinux.git 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: Dimitri Daskalakis Link: https://patch.msgid.link/20251124200518.1848029-1-dimitri.daskalakis1@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c index 56744e3a14ec4..13d508ce637f1 100644 --- a/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c +++ b/drivers/net/ethernet/meta/fbnic/fbnic_txrx.c @@ -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,