git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f761e
)
net/qede/base: fix error code in resc allocation
author
Rasesh Mody
<rasesh.mody@cavium.com>
Fri, 23 Dec 2016 00:50:00 +0000
(16:50 -0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:52 +0000
(19:40 +0100)
Fix to return error code ECORE_INVAL instead of 0 when EQ elements
is too large as done elsewhere in this function.
Fixes:
22d07d939c3c
("net/qede/base: update")
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_dev.c
patch
|
blob
|
history
diff --git
a/drivers/net/qede/base/ecore_dev.c
b/drivers/net/qede/base/ecore_dev.c
index
6060f9e
..
58b9387
100644
(file)
--- a/
drivers/net/qede/base/ecore_dev.c
+++ b/
drivers/net/qede/base/ecore_dev.c
@@
-667,6
+667,7
@@
enum _ecore_status_t ecore_resc_alloc(struct ecore_dev *p_dev)
DP_ERR(p_hwfn, "Cannot allocate 0x%x EQ elements."
"The maximum of a u16 chain is 0x%x\n",
n_eqes, 0xFFFF);
+ rc = ECORE_INVAL;
goto alloc_err;
}