Commit a3bc86d5 authored by Qianfeng Rong's avatar Qianfeng Rong Committed by Greg Kroah-Hartman
Browse files

drm/amdkfd: Fix error code sign for EINVAL in svm_ioctl()



[ Upstream commit cbda64f3 ]

Use negative error code -EINVAL instead of positive EINVAL in the default
case of svm_ioctl() to conform to Linux kernel error code conventions.

Fixes: 42de677f ("drm/amdkfd: register svm range")
Signed-off-by: default avatarQianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 96a1e350
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment