net/mvpp2: fix stack corruption
authorYuri Chipchev <yuric@marvell.com>
Wed, 27 Jan 2021 16:09:15 +0000 (18:09 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:10 +0000 (18:16 +0100)
commit8ce3c5db531eaf339ed60fb0ef97eab05c77846b
treebb70f4386bee7c2180b1aa68e7729a3f8d29d50a
parent2addc463eed9e2d7cbda25b7bf9d2ed1412b7236
net/mvpp2: fix stack corruption

Fixes stack corruption in mrvl_fill_bpool function
in case num > MRVL_PP2_RXD_MAX

Fixes: c3637258d894 ("net/mrvl: fix Rx descriptors number")
Cc: stable@dpdk.org
Signed-off-by: Yuri Chipchev <yuric@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
drivers/net/mvpp2/mrvl_ethdev.c