media: video: tegra: nvavp: Fix nvmap handle issue
authorGajanan Bhat <gbhat@nvidia.com>
Wed, 12 Dec 2012 20:06:04 +0000 (12:06 -0800)
committerMatthew Pedro <mapedro@nvidia.com>
Fri, 14 Dec 2012 19:35:17 +0000 (11:35 -0800)
commit48105b8d2b4ae39660655fb26fc7d6459643d3d4
tree0943e2a9df24c8b65c66740427085b050ddeaf97
parent3c3574a139f9093d6841b2483c0015060f88ee55
media: video: tegra: nvavp: Fix nvmap handle issue

In open call we were assigning the driver's nvmap handle to
the nvavp's client context which would get released in release
call to driver. This will cause driver's nvmap handle to be
invalid if a parallel client context is running and driver does
any nvmap operation.

Bug 1013063
Bug 1192772

Change-Id: Id02520ae8ec511bb8c50bc4d3908ea3e75e1ea6b
Reviewed-on: http://git-master/r/170585
Signed-off-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-on: http://git-master/r/171097
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/media/video/tegra/nvavp/nvavp_dev.c