summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
diff options
context:
space:
mode:
authorHamza Mahfooz <hamza.mahfooz@amd.com>2023-03-08 16:14:08 -0500
committerAlex Deucher <alexander.deucher@amd.com>2023-03-13 17:27:49 -0400
commit4648cf5fc8c78d71ebb22c9fca760062b7747ec4 (patch)
tree44d537a59b9533b16b9ee74806a3070d639f6f6c /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
parent84b31d484eb9759cb3d8fbbb7a0e191cc097ea28 (diff)
drm/amd/display: use a more accurate check in dm_helpers_dp_read_dpcd()
We should be checking if drm_dp_dpcd_read() returns the size that we are asking it to read instead of just checking if it is greater than zero. So, compare the return value of drm_dp_dpcd_read() to the requested read size. Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
0 files changed, 0 insertions, 0 deletions