Re: [PATCH net] rtase: Fix a check for error in rtase_alloc_msix()
From: Simon Horman
Date: Wed Jan 08 2025 - 05:43:18 EST
On Wed, Jan 08, 2025 at 12:15:53PM +0300, Dan Carpenter wrote:
> The pci_irq_vector() function never returns zero. It returns negative
> error codes or a positive non-zero IRQ number. Fix the error checking to
> test for negatives.
>
> Fixes: a36e9f5cfe9e ("rtase: Add support for a pci table in this module")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>