net/sfc/base: fix potential buffer overflow in Tx queue init
authorAndy Moreton <amoreton@solarflare.com>
Tue, 4 Apr 2017 12:13:26 +0000 (13:13 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:03:04 +0000 (19:03 +0200)
commitfa7c395deec94489db91d9942e8a4c57a76effdd
tree0cec26d342323633bcdfa7a0a373283663fe2764
parent3798610de78aba25e315650ef0a12cbea161ec94
net/sfc/base: fix potential buffer overflow in Tx queue init

Improve error checking to avoid a caller overflowing the MCDI
request buffer if the requested TXQ size was excessively large.

Coverity issue: 1305527
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_tx.c