diff options
author | Qingqing Zhuo <[email protected]> | 2020-12-09 18:04:04 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-01-13 23:42:45 -0500 |
commit | 33fd9cb8a267937e0902ade4cdefd8a008c93e65 (patch) | |
tree | 198d14611a6f1c5cc0f05297d53b0f7ba134dace /drivers/gpu/drm/amd/display/dc/basics/dc_common.c | |
parent | a717ad8ce5868eaddbc6a094df046a047ac7e910 (diff) |
drm/amd/display: NULL pointer hang
[Why]
In dc_link_dp_set_test_pattern, we assume all pipes have a stream, which
can cause null pointer dereference.
[How]
Add a null pointer check before accessing stream.
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Qingqing Zhuo <[email protected]>
Reviewed-by: Nicholas Kazlauskas <[email protected]>
Acked-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/basics/dc_common.c')
0 files changed, 0 insertions, 0 deletions