mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-22 10:30:42 +02:00
Fix drmModeCreatePropertyBlob() length parameter after f894801fa2
Fixes: f894801fa ("xfree86: modesetting: don't use VLA")
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2011>
This commit is contained in:
parent
7f68b58865
commit
772cb30448
1 changed files with 3 additions and 1 deletions
|
|
@ -1925,7 +1925,9 @@ drmmode_set_gamma_lut(drmmode_crtc_private_ptr drmmode_crtc,
|
|||
}
|
||||
|
||||
uint32_t blob_id;
|
||||
if (drmModeCreatePropertyBlob(drmmode->fd, lut, sizeof(lut), &blob_id)) {
|
||||
if (drmModeCreatePropertyBlob(drmmode->fd, lut,
|
||||
sizeof(struct drm_color_lut) * size,
|
||||
&blob_id)) {
|
||||
free(lut);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue