Thread (5 messages) 5 messages, 4 authors, 2025-02-13

Re: [PATCH next] ice: Fix signedness bug in ice_init_interrupt_scheme()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-02-13 01:59:03
Also in: intel-wired-lan, kernel-janitors, lkml

On Wed, 12 Feb 2025 17:46:54 +0100 Alexander Lobakin wrote:
quoted
[PATCH next] ice: Fix signedness bug in ice_init_interrupt_scheme()  
I believe it should be "PATCH net" with
quoted
If pci_alloc_irq_vectors() can't allocate the minimum number of vectors
then it returns -ENOSPC so there is no need to check for that in the
caller.  In fact, because pf->msix.min is an unsigned int, it means that
any negative error codes are type promoted to high positive values and
treated as success.  So here the "return -ENOMEM;" is unreachable code.
Check for negatives instead.

Fixes: 79d97b8cf9a8 ("ice: remove splitting MSI-X between features")  
a 'Stable:' tag here.
Bug only exists in net-next if it comes from commit under Fixes.
So I think the patch is good as is.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help