aboutsummaryrefslogtreecommitdiff
path: root/contrib/file/magic/Magdir/sgi
diff options
context:
space:
mode:
authorAbdelkader Boudih <freebsd@seuros.com>2026-02-03 03:21:43 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-02-03 03:21:43 +0000
commited3a2469a71e0ef48cf8e636c35e64a011756da3 (patch)
treea3b289f2a409e4f752cb381edd516c6f56ac7f16 /contrib/file/magic/Magdir/sgi
parentd3f21856aa72c28408660ed40ce76bbd0716a991 (diff)
uart: fix sleeping while holding mutex in uart_tty_detach()HEADmain
Move swi_remove() call before acquiring the tty lock. swi_remove() calls intr_event_remove_handler() which may sleep via msleep(), causing a lock order violation when called with the tty mutex held. The software interrupt handler removal operates on the interrupt event structure independently and does not require the tty lock. This matches the pattern used in other drivers such as tcp_hpts.c where swi_remove() is called without holding other locks. Reviewed by: imp, kevans MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54953
Diffstat (limited to 'contrib/file/magic/Magdir/sgi')
0 files changed, 0 insertions, 0 deletions