Skip to content

Commit ab084f0

Browse files
Dimitri Daskalakiskuba-moo
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 7a57b32 commit ab084f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/meta/fbnic/fbnic_txrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ int fbnic_alloc_napi_vectors(struct fbnic_net *fbn)
18081808
free_vectors:
18091809
fbnic_free_napi_vectors(fbn);
18101810

1811-
return -ENOMEM;
1811+
return err;
18121812
}
18131813

18141814
static void fbnic_free_ring_resources(struct device *dev,

0 commit comments

Comments
 (0)