mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 02:10:35 +01: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> (cherry picked from commit772cb30448)
This commit is contained in:
parent
3eac9393d7
commit
5eccd05b61
1 changed files with 3 additions and 1 deletions
|
|
@ -1927,7 +1927,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