From 91485ba75d5a598eda5a041505c7c65648297e32 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 23 Jul 2024 17:28:03 +0200 Subject: Fix kms capture getting stuck if more than 1 fd per plane --- kms/client/kms_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kms/client') diff --git a/kms/client/kms_client.c b/kms/client/kms_client.c index 966fa5e..d3e68dd 100644 --- a/kms/client/kms_client.c +++ b/kms/client/kms_client.c @@ -88,7 +88,7 @@ static int recv_msg_from_server(int server_pid, int server_fd, gsr_kms_response response_message.msg_iov = &iov; response_message.msg_iovlen = 1; - char cmsgbuf[CMSG_SPACE(sizeof(int) * GSR_KMS_MAX_ITEMS)]; + char cmsgbuf[CMSG_SPACE(sizeof(int) * GSR_KMS_MAX_ITEMS * GSR_KMS_MAX_DMA_BUFS)]; memset(cmsgbuf, 0, sizeof(cmsgbuf)); response_message.msg_control = cmsgbuf; response_message.msg_controllen = sizeof(cmsgbuf); -- cgit v1.2.3