]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix masking binary not operator on two mask operations
authorColin Ian King <colin.king@canonical.com>
Fri, 22 Jan 2021 15:00:22 +0000 (15:00 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jan 2021 22:47:05 +0000 (17:47 -0500)
commitee4340bcb2116054d0505b6a63ef153981f51343
treebc0ed3766c8cc33df0fd3a444775dc330e869d65
parent67c2445b9a50968dea3619cae52ca6cb16099094
drm/amdgpu: Fix masking binary not operator on two mask operations

Currently the ! operator is incorrectly being used to flip bits on
mask values. Fix this by using the bit-wise ~ operator instead.

Addresses-Coverity: ("Logical vs. bitwise operator")
Fixes: 104921193af81e ("drm/amdgpu: update mmhub mgcg&ls for mmhub_v2_3")
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c