net: mvpp2: use correct index on array mvpp2_pools
authorColin Ian King <colin.king@canonical.com>
Wed, 21 Mar 2018 17:31:15 +0000 (17:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 18:48:25 +0000 (14:48 -0400)
commite2e031640b3a9482b137b68193b7d59b8308185c
tree6fb77b2d793da4d639a3297230704200a4d515c3
parentf5b5a3b7879d5ed5fcbf51aba4e8eed1232077de
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>
drivers/net/ethernet/marvell/mvpp2.c