Skip to content
Commit 851a52eb authored by Mukul Joshi's avatar Mukul Joshi Committed by Greg Kroah-Hartman
Browse files

drm/amdgpu: Fix leak when GPU memory allocation fails



commit 25e9227c upstream.

Free the sync object if the memory allocation fails for any
reason.

Signed-off-by: default avatarMukul Joshi <mukul.joshi@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21722c0b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment