diff options
author | Gajanan Bhat <gbhat@nvidia.com> | 2012-12-12 12:06:04 -0800 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2012-12-13 16:27:05 -0800 |
commit | 4b7a69cbdec6bf0680a4729b0fdc3ea44a80f5c3 (patch) | |
tree | 4f1041cae3bc37ed0a2489965cdeaaef2991cf16 /drivers/media/video/tegra | |
parent | 492bf3a1cb016b3fbef4ba97ab18aa83553e2910 (diff) |
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: I9528d233755ddf7cc3dd9cce52816c5521e687e7
Signed-off-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-on: http://git-master/r/170997
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/media/video/tegra')
-rw-r--r-- | drivers/media/video/tegra/nvavp/nvavp_dev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/video/tegra/nvavp/nvavp_dev.c b/drivers/media/video/tegra/nvavp/nvavp_dev.c index 05d58e7af398..eb5e951e7294 100644 --- a/drivers/media/video/tegra/nvavp/nvavp_dev.c +++ b/drivers/media/video/tegra/nvavp/nvavp_dev.c @@ -1396,7 +1396,6 @@ static int tegra_nvavp_open(struct inode *inode, struct file *filp, int channel_ if (!ret) nvavp->refcount++; - clientctx->nvmap = nvavp->nvmap; clientctx->nvavp = nvavp; filp->private_data = clientctx; |