]> Gentwo Git Trees - linux/.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)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 21:38:39 +0000 (17:38 -0400)
commitcbda64f3f58027f68211dda8ea94d52d7e493995
tree1e46ce7ac342df21e6299139c75e71da86462a79
parent94bd7bf2c920998b4c756bc8a54fd3dbdf7e4360
drm/amdkfd: Fix error code sign for EINVAL in svm_ioctl()

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>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c