diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-03-21 20:31:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-22 21:48:25 +0300 |
commit | e2e031640b3a9482b137b68193b7d59b8308185c (patch) | |
tree | 6fb77b2d793da4d639a3297230704200a4d515c3 /drivers | |
parent | f5b5a3b7879d5ed5fcbf51aba4e8eed1232077de (diff) | |
download | linux-e2e031640b3a9482b137b68193b7d59b8308185c.tar.xz |
net: mvpp2: use correct index on array mvpp2_pools
Array mvpp2_pools is being indexed by long_log_pool, however this
looks like a cut-n-paste bug and in fact should be short_log_pool.
Detected by CoverityScan, CID#1466113 ("Copy-paste error")
Fixes: 576193f2d579 ("net: mvpp2: jumbo frames support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/marvell/mvpp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c index 9bd35f2291d6..f8bc3d4a39ff 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -4632,7 +4632,7 @@ static int mvpp2_swf_bm_pool_init(struct mvpp2_port *port) if (!port->pool_short) { port->pool_short = mvpp2_bm_pool_use(port, short_log_pool, - mvpp2_pools[long_log_pool].pkt_size); + mvpp2_pools[short_log_pool].pkt_size); if (!port->pool_short) return -ENOMEM; |