Qingqing Zhuo 73644143b3 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 <daniel.wheeler@amd.com>
Signed-off-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-01-14 00:17:16 -05:00
..
2021-01-14 00:17:16 -05:00
2020-12-14 11:07:56 -08:00
2020-12-15 10:21:48 +01:00
2020-12-14 11:07:56 -08:00
2020-12-14 11:07:56 -08:00
2020-08-06 14:27:31 -07:00
2020-11-13 14:53:34 +10:00
2020-12-18 12:38:28 -08:00
2020-12-15 10:21:48 +01:00
2020-12-16 16:38:41 -08:00
2020-12-15 10:21:48 +01:00
2020-12-15 10:21:48 +01:00
2020-12-18 12:38:28 -08:00
2020-12-14 11:07:56 -08:00
2020-12-16 16:38:41 -08:00
2020-12-14 11:07:56 -08:00
2021-01-07 14:25:43 +01:00
2020-12-15 10:21:48 +01:00
2020-11-06 10:31:26 +01:00
2020-11-16 20:48:20 +01:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-11-16 20:48:20 +01:00
2020-08-11 11:58:31 +10:00