linux/drivers/gpu/drm/amd/display/modules
Nicholas Kazlauskas d652509e7a drm/amd/display: Check ramp != NULL before applying lut1d for degamma
[Why]
A NULL ramp is a valid configuration for passing into
mod_color_calculate_degamma_params but we'll hit a NULL pointer if we do
so.

We need this in order to get the right transfer function to do degamma
on NV12 formats where we aren't supplied with a custom user degamma.

[How]
Add the NULL check.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Zhan Liu <Zhan.Liu@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-04-22 18:11:47 -04:00
..
color drm/amd/display: Check ramp != NULL before applying lut1d for degamma 2020-04-22 18:11:47 -04:00
freesync drm/amd/display: LFC not working on 2.0x range monitors (v2) 2020-03-31 12:26:14 -04:00
hdcp drm/amd/display: fix typo 2020-04-09 10:43:16 -04:00
inc drm/amd/display: fix typo 2020-04-09 10:43:16 -04:00
info_packet drm/amd/display: Unify psr feature flags 2020-04-22 18:11:47 -04:00
power drm/amd/display: Remove byte swapping for dmcub abm config table 2020-04-22 18:11:47 -04:00
stats drm/amd/display: remove redundant null pointer check before kfree 2018-09-26 21:09:12 -05:00
vmid drm/amd/display: System crashes when add_ptb_to_table() gets called 2020-02-25 11:03:54 -05:00