projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1a7b9e
)
cavium: Return negative value when pci_alloc_irq_vectors() fails
author
Zheyu Ma
<zheyuma97@gmail.com>
Mon, 18 Oct 2021 02:16:22 +0000
(
02:16
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 18 Oct 2021 12:46:02 +0000
(13:46 +0100)
During the process of driver probing, the probe function should return < 0
for failure, otherwise, the kernel will treat value > 0 as success.
Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/cavium/thunder/nic_main.c
b/drivers/net/ethernet/cavium/thunder/nic_main.c
index
691e147
..
0fbecd0
100644
(file)
--- a/
drivers/net/ethernet/cavium/thunder/nic_main.c
+++ b/
drivers/net/ethernet/cavium/thunder/nic_main.c
@@
-1193,7
+1193,7
@@
static int nic_register_interrupts(struct nicpf *nic)
dev_err(&nic->pdev->dev,
"Request for #%d msix vectors failed, returned %d\n",
nic->num_vec, ret);
- return
1
;
+ return
ret
;
}
/* Register mailbox interrupt handler */