Skip to content

Commit 26e8e73

Browse files
committed
[signal]: fix spinlock leak in rt_thread_handle_sig()
1 parent 492e33d commit 26e8e73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/signal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ void rt_thread_handle_sig(rt_bool_t clean_state)
499499
}
500500
else
501501
{
502+
rt_spin_unlock_irqrestore(&_thread_signal_lock, level);
502503
return;
503504
}
504505
}

0 commit comments

Comments
 (0)