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:
Ville Syrjälä 2023-01-19 20:32:22 +02:00 committed by Matt Turner
parent 1f41320e1c
commit 893e9a3238

View File

@ -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))