Skip to content

Commit cbda64f

Browse files
qianfengrongalexdeucher
authored andcommitted
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: 42de677 ("drm/amdkfd: register svm range") Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 94bd7bf commit cbda64f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdkfd/kfd_svm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4261,7 +4261,7 @@ svm_ioctl(struct kfd_process *p, enum kfd_ioctl_svm_op op, uint64_t start,
42614261
r = svm_range_get_attr(p, mm, start, size, nattrs, attrs);
42624262
break;
42634263
default:
4264-
r = EINVAL;
4264+
r = -EINVAL;
42654265
break;
42664266
}
42674267

0 commit comments

Comments
 (0)