]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdkfd: Fix error code sign for EINVAL in svm_ioctl()
authorQianfeng Rong <rongqianfeng@vivo.com>
Thu, 4 Sep 2025 12:36:46 +0000 (20:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:32 +0000 (11:56 +0200)
commitac9f0bc2f1eacb4694e4a1cd6cd0eb232548594e
treeef6c2b8f1ea38f7f242463dc8ed4fe77a8a0165b
parentd9454612049e4ef266e24e65a3b9f309f6bf1bb2
drm/amdkfd: Fix error code sign for EINVAL in svm_ioctl()

[ Upstream commit cbda64f3f58027f68211dda8ea94d52d7e493995 ]

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: 42de677f7999 ("drm/amdkfd: register svm range")
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c