]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: fix NULL pointer bug in svm_range_set_attr
authorEric Huang <jinhuieric.huang@amd.com>
Thu, 7 May 2026 19:51:49 +0000 (15:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 May 2026 15:57:49 +0000 (11:57 -0400)
commite984d61d92e702096058f0f828f4b2b8563b88ce
tree98610417aa027a218a8802cd1311c68317c4b416
parentec78a85d95e9c37b6ca16d6ed1639fa64d5dd6dc
drm/amdkfd: fix NULL pointer bug in svm_range_set_attr

The process_info could be NULL if user doesn't call kfd_ioctl_acquire_vm
before calling kfd_ioctl_svm.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 83a26c812e0529eb040d31a76f73e33e637243d4)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdkfd/kfd_svm.c