gpu: nvgpu: Remove IOCTL FREE_OBJ_CTX
authorTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 8 Nov 2016 22:29:14 +0000 (14:29 -0800)
committerWinnie Hsu <whsu@nvidia.com>
Tue, 20 Jun 2017 18:16:20 +0000 (11:16 -0700)
commit707f31fbd5732f1fda6caff4e122e11570275ce7
treef3ccc2d1802d9df69a610de5591bfa8a55cd64f9
parent3fa65df2d21e47591e0f3e4b4c2d7b6930f3e9e8
gpu: nvgpu: Remove IOCTL FREE_OBJ_CTX

We have never used the IOCTL FREE_OBJ_CTX. Using it leads to context
being only partially available, and can lead to use-after-free.

Bug 1834225
Bug 1885775

Change-Id: I9d2b632ab79760f8186d02e0f35861b3a6aae649
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1250004
Reviewed-on: http://git-master/r/1258422
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
(cherry picked from commit 9d4ed1b513b675c700cf1aa519663570ca188278 in
rel-24)
Reviewed-on: http://git-master/r/1489613
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c
drivers/gpu/nvgpu/gk20a/channel_gk20a.h
drivers/gpu/nvgpu/gk20a/gk20a.h
drivers/gpu/nvgpu/gk20a/gr_gk20a.c
drivers/gpu/nvgpu/gm20b/gr_gm20b.c
drivers/gpu/nvgpu/vgpu/gr_vgpu.c
include/uapi/linux/nvgpu.h