]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r333131:
authorshurd <shurd@FreeBSD.org>
Fri, 22 Feb 2019 18:24:57 +0000 (18:24 +0000)
committershurd <shurd@FreeBSD.org>
Fri, 22 Feb 2019 18:24:57 +0000 (18:24 +0000)
commit452513d43d2ccfec24b2fddaa6a5acf03eb69a6d
tree7640966958605cd155dda4483076b0305cd405a3
parentfed5a89116b8bdfa13f2e7f25c7ca1a26eb24f49
MFC r333131:

Fix iflib_encap() EFBIG handling bugs

1) Don't give up if m_collapse() fails.  Rather than giving up, try
m_defrag() immediately.

2) Fix a leak where, if the NIC driver rejected the defrag'ed chain
as having too many segments, we would fail to free the chain.

Reviewed by:  Matthew Macy <mmacy@mattmacy.io> (this version of patch)
Submitted by: Matthew Macy <mmacy@mattmacy.io> (early version of leak fix)
sys/net/iflib.c