aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2021-03-04 19:54:28 -0800
committerAlex Deucher <alexander.deucher@amd.com>2021-03-23 23:03:18 -0400
commit692bd2a02e2dfe128e8451f9bc1806ab87d0b1d5 (patch)
treef5046ac3404b77e3d610db148ae8a7e02b9f546a /drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
parent554ba183b135ef09250b61a202d88512b5bbd03a (diff)
drm/amdgpu/swsmu: fix error return code of smu_v11_0_set_allowed_mask()
When bitmap_empty() or feature->feature_num triggers an error, no error return code of smu_v11_0_set_allowed_mask() is assigned. To fix this bug, ret is assigned with -EINVAL as error return code. Reviewed-by: Evan Quan <evan.quan@amd.com> Reported-by: TOTE Robot <oslab@tsinghua.edu.cn> Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
0 files changed, 0 insertions, 0 deletions