drm/radeon/vm: don't attempt to update ptes if ib allocation fails
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2013 20:25:35 +0000 (15:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Nov 2013 20:56:22 +0000 (15:56 -0500)
commit4cc948b94a222c310ae089c36718aac7a03aec90
tree92c9765b93ee4e93b50eb4c4bd1b9f2497737b69
parent99b4f25122f43210278cde17a9d100906235a074
drm/radeon/vm: don't attempt to update ptes if ib allocation fails

If we fail to allocate an indirect buffer (ib) when updating
the ptes, return an error instead of trying to use the ib.
Avoids a null pointer dereference.

Bug:
https://bugzilla.kernel.org/show_bug.cgi?id=58621

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_gart.c