UPSTREAM: drm/amdgpu: fix error handling in amdgpu_cs_user_fence_chunk

[ Upstream commit 0165de983272d1fae0809ed9db47c46a412279bc ]

Slowly leaking memory one page at a time :)

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

BUG=chromium:894058
TEST=None

(cherry picked from commit f7b86faf0bd11ae44d009d7d68ec8af5491119fe)
Signed-off-by: Guenter Roeck <groeck@chromium.org>

Change-Id: Ie0ccc5ab381cd4d662d2d3b03330fcb8c257246d
Reviewed-on: https://chromium-review.googlesource.com/c/1315510
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Queue: Guenter Roeck <groeck@chromium.org>
Tested-by: Guenter Roeck <groeck@chromium.org>
1 file changed