aboutsummaryrefslogtreecommitdiff
path: root/kms/client
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-23 17:28:03 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-23 17:28:03 +0200
commit91485ba75d5a598eda5a041505c7c65648297e32 (patch)
tree9fc74d386b40413e30312ff05a1c389120abfc46 /kms/client
parent7e07ad1b6ef467df4b6da12c65094a7ebc0b48ed (diff)
Fix kms capture getting stuck if more than 1 fd per plane
Diffstat (limited to 'kms/client')
-rw-r--r--kms/client/kms_client.c2
1 files changed, 1 insertions, 1 deletions
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);