mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00: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:
committed by
Matt Turner
parent
1f41320e1c
commit
893e9a3238
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user