]> 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, 13 May 2021 19:49:20 +0000 (21:49 +0200)
commita56e5ad6903037861457da754574b4903dcb0e7e
tree4d587496751a18bc141759e0a514cee230cc1188
parent4dfe70fdbda05453e824bc9edfc0d09eab7b2929
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
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30008
sys/netgraph/ng_bridge.c