mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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 <dimitri.daskalakis1@gmail.com> Link: https://patch.msgid.link/20251124200518.1848029-1-dimitri.daskalakis1@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
7a57b32523
commit
ab084f0b8d
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user