Commit a54e4639 authored by Fedor Pchelkin's avatar Fedor Pchelkin Committed by Alex Deucher
Browse files

drm/amd/pm/powerplay/hwmgr/smu_helper: fix order of mask and value



There is a small typo in phm_wait_on_indirect_register().

Swap mask and value arguments provided to phm_wait_on_register() so that
they satisfy the function signature and actual usage scheme.

Found by Linux Verification Center (linuxtesting.org) with Svace static
analysis tool.

In practice this doesn't fix any issues because the only place this
function is used uses the same value for the value and mask.

Fixes: 3bace359 ("drm/amd/powerplay: add hardware manager sub-component")
Signed-off-by: default avatarFedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 14b2d71a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment