video: tegra: nvmap: fix possible use after free
authorGagan Grover <ggrover@nvidia.com>
Tue, 22 Nov 2016 09:31:11 +0000 (14:31 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 5 May 2017 21:56:20 +0000 (14:56 -0700)
commit5cbb7a316b9c0d530f2d64f98946ce064d075857
treeea24f74cfb7d978dc296f941adf9a47f71ec416e
parent80297568c1a53f70d335e1dcc734f2ce654bd4bc
video: tegra: nvmap: fix possible use after free

Fix possible use after free issue.

Bug 1814555
Bug 1884319

Change-Id: I826aa34f61d43fda5419a528697ce84ba2ce1eae
Reviewed-on: http://git-master/r/1221643
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: http://git-master/r/1257999
(cherry picked from commit b1647da33cff0c498ca8439a722ea1962ecf6901 in rel-24)
Reviewed-on: http://git-master/r/1461184
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
drivers/video/tegra/nvmap/nvmap_ioctl.c