drm/amdkfd: fix process reference drop on debug ioctl
authorJonathan Kim <Jonathan.Kim@amd.com>
Wed, 21 Feb 2024 10:20:34 +0000 (05:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Feb 2024 15:27:50 +0000 (10:27 -0500)
commit6f05159a0db05fe93acf2701dd1b39c690237c8e
tree201e545b6a41ba384a1f45e4c682edd6e9f2a184
parent8f4de8f72e1e7c7e4cdd6da1ef5ff5812c525b13
drm/amdkfd: fix process reference drop on debug ioctl

Prevent dropping the KFD process reference at the end of a debug
IOCTL call where the acquired process value is an error.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c