]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/powerplay: fix pcie sysfs interface when set wrong value
authorLikun Gao <Likun.Gao@amd.com>
Mon, 4 Mar 2019 02:46:27 +0000 (10:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:48 +0000 (15:36 -0500)
commitdb65e887fea55ba3e5ce77f7b129a0cde0e1f050
tree49ca7b76182ad65b1d832773fd2ef2439cda353f
parent24bf582e27a8ac5ffab6c2f1b9541ebaeb250a3d
drm/amd/powerplay: fix pcie sysfs interface when set wrong value

The operation of mutex_unlock smu->mutex should be done when forced
level is larger than NUM_LINK_LEVELS in the function of force_clk_levels.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/vega20_ppt.c