mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
drm/amd/display: initialize backlight_ramping_override to false
[Why] Stack variable params.backlight_ramping_override is uninitialized, so it contains junk data [How] Initialize the variable to false Reviewed-by: Roman Li <Roman.Li@amd.com> Acked-by: Anson Jacob <Anson.Jacob@amd.com> Signed-off-by: Josip Pavic <Josip.Pavic@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
This commit is contained in:
parent
9f52c25f59
commit
467a51b69d
1 changed files with 1 additions and 0 deletions
|
@ -1719,6 +1719,7 @@ static int dm_late_init(void *handle)
|
||||||
linear_lut[i] = 0xFFFF * i / 15;
|
linear_lut[i] = 0xFFFF * i / 15;
|
||||||
|
|
||||||
params.set = 0;
|
params.set = 0;
|
||||||
|
params.backlight_ramping_override = false;
|
||||||
params.backlight_ramping_start = 0xCCCC;
|
params.backlight_ramping_start = 0xCCCC;
|
||||||
params.backlight_ramping_reduction = 0xCCCCCCCC;
|
params.backlight_ramping_reduction = 0xCCCCCCCC;
|
||||||
params.backlight_lut_array_size = 16;
|
params.backlight_lut_array_size = 16;
|
||||||
|
|
Loading…
Reference in a new issue