Charlene Liu f0584be558 drm/amd/display: add NULL pointer check
[Why]
In virtual link use case, link->ddc could be NULL.

[How]
Add null pointer check to avoid undefined behavior.

Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Reviewed-by: Hansen Dsouza <hansen.dsouza@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-02-14 16:03:56 -05:00
..
2022-12-13 15:22:14 -08:00
2023-01-14 07:38:48 +09:00
2023-01-27 16:16:57 -08:00
2022-12-16 03:49:24 -08:00
2023-01-12 17:02:20 -06:00
2022-12-19 07:13:33 -06:00
2023-01-12 05:56:06 -06:00
2023-01-31 12:23:23 +01:00
2023-01-31 12:23:23 +01:00
2022-12-16 03:49:24 -08:00
2023-01-27 14:05:38 +01:00
2023-01-18 14:44:32 -08:00
2022-12-13 15:47:48 -08:00
2022-12-13 13:09:38 -08:00
2022-12-11 21:25:58 +01:00
2022-12-16 03:49:24 -08:00
2023-01-29 11:06:47 -08:00
2023-01-27 16:09:12 -08:00
2022-12-21 09:19:24 -08:00
2023-01-31 12:23:23 +01:00
2023-01-27 16:16:57 -08:00
2023-01-13 17:32:22 -06:00
2022-12-13 15:47:48 -08:00
2022-12-21 09:41:28 -08:00
2022-12-21 09:19:24 -08:00
2023-01-06 13:12:42 -08:00
2023-01-24 17:42:53 -08:00
2023-01-10 23:09:09 +01:00
2022-12-19 08:47:33 -06:00
2022-12-12 10:17:08 -08:00
2023-01-21 11:12:42 -08:00
2023-01-21 11:10:03 -08:00
2023-01-31 12:23:23 +01:00
2022-12-16 03:49:24 -08:00
2022-12-17 08:34:01 -06:00
2023-01-12 17:02:20 -06:00