Home
last modified time | relevance | path

Searched hist:"1 c1ada37af6ee6fb9cfc8da6a56cc83208cd8d6f" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_process.cdiff 1c1ada37af6ee6fb9cfc8da6a56cc83208cd8d6f Wed Jun 17 13:52:07 CDT 2020 Alex Deucher <alexander.deucher@amd.com> drm/amdkfd: fix ref count leak when pm_runtime_get_sync fails

The call to pm_runtime_get_sync increments the counter even in case of
failure, leading to incorrect ref count.
In case of failure, decrement the ref count before returning.

Reviewed-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>