mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-04 07:19:35 +01:00
Leave robust-protected region before checking for cancellation by calling _thr_testcancel(). Otherwise, if cancelling request was pending, the cancel handler is called with the dandling inact_mtx, which triggers an assert if any mutex operation is performed by the handler. Reported and tested by: Dimitri Staessens <[email protected]> Sponsored by: The FreeBSD Foundation MFC after: 1 week