diff options
author | Alexander Motin <mav@FreeBSD.org> | 2021-02-17 02:15:28 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2021-02-17 02:15:28 +0000 |
commit | 294e62bebf36f873fd083d2fe8edd78919dda4e8 (patch) | |
tree | d8677ec3451c86c540dbe5206a39cf5f316d6425 /COPYRIGHT | |
parent | aa5fef60bf663d31cddf53d7a8c6856d5e4672c0 (diff) | |
download | src-294e62bebf36f873fd083d2fe8edd78919dda4e8.tar.gz src-294e62bebf36f873fd083d2fe8edd78919dda4e8.zip |
cxgbe(4): Save proper zone index on low memory in refill_fl().
When refill_fl() fails to allocate large (9/16KB) mbuf cluster, it
falls back to safe (4KB) ones. But it still saved into sd->zidx
the original fl->zidx instead of fl->safe_zidx. It caused problems
with the later use of that cluster, including memory and/or data
corruption.
While there, make refill_fl() to use the safe zone for all following
clusters for the call, since it is unlikely that large succeed.
MFC after: 3 days
Sponsored by: iXsystems, Inc.
Reviewed by: np, jhb
Differential Revision: https://reviews.freebsd.org/D28716
Diffstat (limited to 'COPYRIGHT')
0 files changed, 0 insertions, 0 deletions