video: tegra: nvhost: validate nvmap_handle_ref
authorBibek Basu <bbasu@nvidia.com>
Tue, 8 Jul 2014 08:54:49 +0000 (13:54 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Thu, 31 Jul 2014 17:07:19 +0000 (10:07 -0700)
commit30f8d578556191ac90ca5d1ec4cba5f05cd690ce
tree8ecf686ff299886c14ea493eecbb5d6e5b3f283a
parenta7feb27765cf32d7da33659771fd0b2571c87b8d
video: tegra: nvhost: validate nvmap_handle_ref

nvhost_job_unpin should always get the nvmap_handle_ref
from rb_entry after validating handle and presence
in the tree.

Bug 1478467

Change-Id: Ibf5f64a1a82fea8adbf7500bdb36b76357776448
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/436076
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/video/tegra/host/nvhost_job.c
drivers/video/tegra/host/nvmap.c
drivers/video/tegra/host/nvmap.h
drivers/video/tegra/nvmap/nvmap.c
include/linux/nvmap.h