]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sfxge(4): fix potential buffer overflow in Tx queue init
authorAndrew Rybchenko <arybchik@FreeBSD.org>
Fri, 23 Nov 2018 07:50:22 +0000 (07:50 +0000)
committerAndrew Rybchenko <arybchik@FreeBSD.org>
Fri, 23 Nov 2018 07:50:22 +0000 (07:50 +0000)
commit8302d100a08cff4b5fb5fca2f9d67da4a4745d53
treedff5d24452565f26b569481994e3f0011a052ea9
parent1695ac20dcec02d121a9e2972b95c361d28cc47d
sfxge(4): 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.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D18067
sys/dev/sfxge/common/ef10_tx.c