]> 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)
commitc457010137efe150f50c7fd6829a6586d41714f3
treebc0ed3766c8cc33df0fd3a444775dc330e869d65
parent03dbdd2c2d452b5a34a12b6e19ebcf68fd17c730
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: da759ededde1cb ("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