mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 04:53:28 +00:00
kinst: test lock in kinst_trampoline_dealloc_locked()
Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39883
This commit is contained in:
parent
aad1685066
commit
e11d11c543
@ -163,6 +163,8 @@ kinst_trampoline_dealloc_locked(uint8_t *tramp, bool freechunks)
|
||||
struct trampchunk *chunk;
|
||||
int off;
|
||||
|
||||
sx_assert(&kinst_tramp_sx, SX_XLOCKED);
|
||||
|
||||
if (tramp == NULL)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user