net/sfc/base: avoid usage of too big arrays on stack
authorMartin Harvey <mharvey@solarflare.com>
Mon, 10 Sep 2018 09:33:20 +0000 (10:33 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:02 +0000 (01:41 +0200)
commitda8692388e7f2cc575b53b2cc76f72f459fd9ca5
treecb0b33e742ba3069e589806104b57f062ab6657c
parentbb5c3b169113773bc932725af0b8c3be3fdcb5eb
net/sfc/base: avoid usage of too big arrays on stack

Found by PreFAST static analysis.

Fixes: 1dae25112a54 ("net/sfc/base: import built-in selftest")
Fixes: d96a34d165b1 ("net/sfc/base: import NVRAM support")
Cc: stable@dpdk.org
Signed-off-by: Martin Harvey <mharvey@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_phy.c
drivers/net/sfc/base/efx_nvram.c