]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netgraph/ng_bridge: Handle send errors during loop handling
authorLutz Donnerhacke <donner@FreeBSD.org>
Tue, 27 Apr 2021 07:49:50 +0000 (09:49 +0200)
committerLutz Donnerhacke <donner@FreeBSD.org>
Thu, 20 May 2021 05:52:21 +0000 (07:52 +0200)
commite240dd0d502e5c6741007e6e8f9ac41a0e5c33cd
tree044deec857aa58757881d79ae8c618296cac925e
parent6cd1cb27a978f4bea9f541bd55618e7372fcc70e
netgraph/ng_bridge: Handle send errors during loop handling

If sending out a packet fails during the loop over all links, the
allocated memory is leaked and not all links receive a copy.  This
patch fixes those problems, clarifies a premature abort of the loop,
and fixes a minory style(9) bug.

PR: 255430
Submitted by: Dancho Penev
Tested by: Dancho Penev
Differential Revision: https://reviews.freebsd.org/D30008

(cherry picked from commit a56e5ad6903037861457da754574b4903dcb0e7e)
sys/netgraph/ng_bridge.c