projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43dcff3
)
qed: Fix error return code in qed_resc_alloc()
author
Wei Yongjun
<weiyj.lk@gmail.com>
Tue, 2 Aug 2016 00:55:34 +0000
(
00:55
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 2 Aug 2016 04:37:35 +0000
(21:37 -0700)
Fix to return error code -EINVAL instead of 0 when EQ elements is
too larger, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dev.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qlogic/qed/qed_dev.c
b/drivers/net/ethernet/qlogic/qed/qed_dev.c
index
0b47ab5
..
0e4f4a9
100644
(file)
--- a/
drivers/net/ethernet/qlogic/qed/qed_dev.c
+++ b/
drivers/net/ethernet/qlogic/qed/qed_dev.c
@@
-509,6
+509,7
@@
int qed_resc_alloc(struct qed_dev *cdev)
DP_ERR(p_hwfn,
"Cannot allocate 0x%x EQ elements. The maximum of a u16 chain is 0x%x\n",
n_eqes, 0xFFFF);
+ rc = -EINVAL;
goto alloc_err;
}