Skip to content
Snippets Groups Projects
Commit 4baa0dca authored by Sunil  khatri's avatar Sunil khatri Committed by Linux Infrastructure
Browse files

drm/amdgpu: validate return value of pm_runtime_get_sync


An invalid return value 'r' of the pm_runtime_get_sync
is r < 0, so fix the return value check and add proper
failure log and exit cleanly.

Successful refcount in userqueue creation to make sure
device remains in active state.

Fixes: 33d65834 ("drm/amdgpu/userq: handle runtime pm")
Signed-off-by: default avatarSunil Khatri <sunil.khatri@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9c77ffcb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment