video: tegra: host: Prevent the race between channel open and close
authorGagan Grover <ggrover@nvidia.com>
Fri, 4 Nov 2016 11:09:33 +0000 (16:09 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Tue, 20 Jun 2017 18:12:18 +0000 (11:12 -0700)
commit83b1866490f6b4fd1c3ebc026646b9d19fcaa0d9
tree0cc2d78011c2befaf86ff97033d633eddda7d0a3
parent244fcb70c61ffdec4c3b2d8511bf6c21d142ea7d
video: tegra: host: Prevent the race between channel open and close

Moved fd_install() at the end of the channel_open ioctl. So, the fd
can't be used until open ioctl completes.

Bug 1832094

Change-Id: Ib33d43bf5164418a38f98677d4e3295f3d1c1450
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1248180
(cherry picked from commit e6a41d5c0049c2878543006b67b7ee2b2bbda2ab)
Reviewed-on: http://git-master/r/1504683
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/video/tegra/host/bus_client.c