]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix return value check for hdcp_work
authorFlora Cui <flora.cui@amd.com>
Wed, 23 Sep 2020 06:42:59 +0000 (14:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Sep 2020 21:07:34 +0000 (17:07 -0400)
commitca945da42fd18e2b02684ac70b2f8d9cc4641141
tree64f0fbeb6c5c382505847a3c8ca086879a14fc9b
parentb379872e2d28f2b555f8a65f01db107389201e4d
drm/amd/display: fix return value check for hdcp_work

max_caps might be 0, thus hdcp_work might be ZERO_SIZE_PTR

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c