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:
fa7c395
)
net/sfc/base: fix out of bounds read in VIs allocation
author
Andy Moreton
<amoreton@solarflare.com>
Tue, 4 Apr 2017 12:13:27 +0000
(13:13 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:03:04 +0000
(19:03 +0200)
Coverity issue:
1349662
Fixes:
e7cd430c864f
("net/sfc/base: import SFN7xxx family support")
Cc: stable@dpdk.org
Signed-off-by: Andy Moreton <amoreton@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_nic.c
patch
|
blob
|
history
diff --git
a/drivers/net/sfc/base/ef10_nic.c
b/drivers/net/sfc/base/ef10_nic.c
index
3a74320
..
aac2679
100644
(file)
--- a/
drivers/net/sfc/base/ef10_nic.c
+++ b/
drivers/net/sfc/base/ef10_nic.c
@@
-501,7
+501,7
@@
efx_mcdi_alloc_vis(
{
efx_mcdi_req_t req;
uint8_t payload[MAX(MC_CMD_ALLOC_VIS_IN_LEN,
- MC_CMD_ALLOC_VIS_OUT_LEN)];
+ MC_CMD_ALLOC_VIS_
EXT_
OUT_LEN)];
efx_rc_t rc;
if (vi_countp == NULL) {
@@
-514,7
+514,7
@@
efx_mcdi_alloc_vis(
req.emr_in_buf = payload;
req.emr_in_length = MC_CMD_ALLOC_VIS_IN_LEN;
req.emr_out_buf = payload;
- req.emr_out_length = MC_CMD_ALLOC_VIS_OUT_LEN;
+ req.emr_out_length = MC_CMD_ALLOC_VIS_
EXT_
OUT_LEN;
MCDI_IN_SET_DWORD(req, ALLOC_VIS_IN_MIN_VI_COUNT, min_vi_count);
MCDI_IN_SET_DWORD(req, ALLOC_VIS_IN_MAX_VI_COUNT, max_vi_count);