]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r340797
authorAndrew Rybchenko <arybchik@FreeBSD.org>
Fri, 21 Dec 2018 14:53:50 +0000 (14:53 +0000)
committerAndrew Rybchenko <arybchik@FreeBSD.org>
Fri, 21 Dec 2018 14:53:50 +0000 (14:53 +0000)
commitb72edf3ba447f377e327f496a5062f2f1b8acbfb
treeab1361b1252d45fb19941f64900f88b20fb48814
parent9cf26a5a6729a8e6dbe676e301ba922c4ecb7041
MFC r340797

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.
Differential Revision:  https://reviews.freebsd.org/D18067
sys/dev/sfxge/common/ef10_tx.c