Skip to content
Snippets Groups Projects
Commit 2055272e authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski
Browse files

rtase: Fix a check for error in rtase_alloc_msix()


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: a36e9f5c ("rtase: Add support for a pci table in this module")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Reviewed-by: default avatarKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://patch.msgid.link/f2ecc88d-af13-4651-9820-7cc665230019@stanley.mountain


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 426046e2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment