drm/msm: Gracefully handle failure in _msm_gem_kernel_new
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 2 Nov 2018 15:25:19 +0000 (09:25 -0600)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:05:28 +0000 (13:05 -0500)
commit93f7abf19dad2d0ad3c93597c87bbaff03218cb9
tree797718d3a1a437e6898d65d18078fe9fafef3b44
parent546ec7b471bcae78463426a218b8c7f35bbb71f4
drm/msm: Gracefully handle failure in _msm_gem_kernel_new

If any of the function calls in _msm_gem_kernel_new fail we need
to make sure to dereference the GEM object with the appropriate
function for the current locking state.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem.c