summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib/cmpbuf.c
diff options
context:
space:
mode:
authorkp <kp@FreeBSD.org>2017-02-01 21:44:50 +0000
committerkp <kp@FreeBSD.org>2017-02-01 21:44:50 +0000
commitdc538ab863039499694beb940ccf7bf292cbc8a4 (patch)
treea7bbeb55c6397b3266a38a270afb901aca3f8a75 /contrib/diff/lib/cmpbuf.c
parentfff555f1c38b463fad6db9bf58798e78af22a0aa (diff)
downloadFreeBSD-src-dc538ab863039499694beb940ccf7bf292cbc8a4.zip
FreeBSD-src-dc538ab863039499694beb940ccf7bf292cbc8a4.tar.gz
MFC 312782
bridge: Release the bridge lock when calling bridge_set_ifcap() This calls ioctl() handlers for the different interfaces in the bridge. These handlers expect to get called in an ioctl context where it's safe for them to sleep. We may not sleep with the bridge lock held. However, we still need to protect the interface list, to ensure it doesn't get changed while we iterate over it. Use BRIDGE_XLOCK(), which prevents bridge members from being removed. Adding bridge members is safe, because it uses LIST_INSERT_HEAD(). This caused panics when adding xen interfaces to a bridge. PR: 216304 Reviewed by: ae Sponsored by: RootBSD Differential Revision: https://reviews.freebsd.org/D9290
Diffstat (limited to 'contrib/diff/lib/cmpbuf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud