video: tegra: host: Protect channel ioctl
authorArto Merilainen <amerilainen@nvidia.com>
Tue, 14 Oct 2014 07:12:26 +0000 (10:12 +0300)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 5 May 2017 21:56:39 +0000 (14:56 -0700)
commitb05568ec3820faf539b307deb4ae8ac036994cf5
tree867dc1d4c40c39f4ad78fff32aa103744fddcd6e
parent5cbb7a316b9c0d530f2d64f98946ce064d075857
video: tegra: host: Protect channel ioctl

Channel ioctl interface is not multithreading safe and as the
common case is that we have only a single active user for an open
fd, add a mutex to force serialization of ioctl calls.

Bug 1830021

Change-Id: Ifa6595a105b913345104f216f0541c371e89efe5
(cherry picked from commit 7b24caa9a8d2ab08fe0c7be112e805e44906d956)
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1248801
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
drivers/video/tegra/host/bus_client.c