video: tegra: host: gk20a: Check for free va fail
authorTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 4 Mar 2014 13:05:06 +0000 (15:05 +0200)
committerMatthew Pedro <mapedro@nvidia.com>
Thu, 3 Apr 2014 16:55:43 +0000 (09:55 -0700)
commite907a091eb5ab25120f903d91a68e940bcc6c666
tree68358be637f97a317426a776064ed2cbf8bc2da2
parent557fe457f2e567576614ac332931cc6d6e0daf1d
video: tegra: host: gk20a: Check for free va fail

Return error if freeing virtual address space fails. Do not try to
free graphics context that has not been allocated.

Change-Id: I1c22650aae25038d56582e00b8906532ace482f1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/382474
(cherry picked from commit 20a8917aaa7c6bbad3c74f5279fb8b142f858e77)
Reviewed-on: http://git-master/r/391823
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
drivers/video/tegra/host/gk20a/gr_gk20a.c
drivers/video/tegra/host/gk20a/mm_gk20a.c