mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
modesetting: Don't feed stack garbage to the kernel in LUT reserved fields
Stop putting stack garbage into the gamma LUT blob reserved
fields.
Fixes: 245b9db03a ("modesetting: Use GAMMA_LUT when available")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
1f41320e1c
commit
893e9a3238
1 changed files with 1 additions and 0 deletions
|
|
@ -1922,6 +1922,7 @@ drmmode_set_gamma_lut(drmmode_crtc_private_ptr drmmode_crtc,
|
|||
lut[i].red = red[i];
|
||||
lut[i].green = green[i];
|
||||
lut[i].blue = blue[i];
|
||||
lut[i].reserved = 0;
|
||||
}
|
||||
|
||||
if (drmModeCreatePropertyBlob(drmmode->fd, lut, sizeof(lut), &blob_id))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue