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)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 7 Nov 2016 23:49:37 +0000 (15:49 -0800)
commite6a41d5c0049c2878543006b67b7ee2b2bbda2ab
tree93c514d053cc2081cd95adf9cf1b9c0d910d6bd3
parentd686b0fd4d60b0a9fc8f7bfd5408f6e557a16684
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
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
drivers/video/tegra/host/bus_client.c