mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 12:52:29 -04:00
drm/amd/display: add null pointer access check
[why] need to add null pointer access check Reviewed-by: Gabe Teeger <gabe.teeger@amd.com> Signed-off-by: Charlene Liu <Charlene.Liu@amd.com> Signed-off-by: George Zhang <george.zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
3b1fdd6413
commit
b6f466c509
@@ -1189,8 +1189,9 @@ void dcn10_link_encoder_dp_set_phy_pattern(
|
||||
set_dp_phy_pattern_prbs7(enc10);
|
||||
break;
|
||||
case DP_TEST_PATTERN_80BIT_CUSTOM:
|
||||
set_dp_phy_pattern_80bit_custom(
|
||||
enc10, param->custom_pattern);
|
||||
if (param)
|
||||
set_dp_phy_pattern_80bit_custom(
|
||||
enc10, param->custom_pattern);
|
||||
break;
|
||||
case DP_TEST_PATTERN_CP2520_1:
|
||||
set_dp_phy_pattern_hbr2_compliance_cp2520_2(enc10, 1);
|
||||
@@ -1202,8 +1203,9 @@ void dcn10_link_encoder_dp_set_phy_pattern(
|
||||
set_dp_phy_pattern_hbr2_compliance_cp2520_2(enc10, 3);
|
||||
break;
|
||||
case DP_TEST_PATTERN_VIDEO_MODE: {
|
||||
set_dp_phy_pattern_passthrough_mode(
|
||||
enc10, param->dp_panel_mode);
|
||||
if (param)
|
||||
set_dp_phy_pattern_passthrough_mode(
|
||||
enc10, param->dp_panel_mode);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user