This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 642fa096a602a3454431c54a7914fd567e34c539 Author: Zhe Weng <[email protected]> AuthorDate: Mon Jan 26 19:50:10 2026 +0800 drivers/virtio-gpu: do not let signals interrupt the command wait If the caller receives a signal while waiting for a command to complete, the wait returns early and the semaphore is released, and the completion callback then posts on a freed semaphore. Wait with nxsem_wait_uninterruptible() instead. Signed-off-by: Zhe Weng <[email protected]> --- drivers/virtio/virtio-gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio-gpu.c b/drivers/virtio/virtio-gpu.c index 408cb388694..19d720a147c 100644 --- a/drivers/virtio/virtio-gpu.c +++ b/drivers/virtio/virtio-gpu.c @@ -230,7 +230,7 @@ static int virtio_gpu_send_cmd(FAR struct virtqueue *vq, { virtqueue_kick(vq); spin_unlock_irqrestore(&priv->lock, flags); - nxsem_wait(&sem); + nxsem_wait_uninterruptible(&sem); } else {
