mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 23:28:05 +02:00
Merge branch 'master' into 'master'
Fix drmModeCreatePropertyBlob() length parameter after f894801fa2
See merge request xorg/xserver!2011
This commit is contained in:
commit
687a3edc9c
1 changed files with 2 additions and 1 deletions
|
|
@ -1925,7 +1925,8 @@ 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