drm/tegra: Fix lockup on a use of staging API
authorDmitry Osipenko <digetx@gmail.com>
Wed, 14 Jun 2017 23:18:24 +0000 (02:18 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Jun 2017 12:11:05 +0000 (14:11 +0200)
commit1066a8959d04785b9d2e9cbb91aaef922b710c4a
tree57426e42663360b403d489125a346d2936a35134
parent59e04bc20de4bd1bd5bfa810bf04a4e50a27b9c1
drm/tegra: Fix lockup on a use of staging API

Commit bdd2f9cd10eb ("Don't leak kernel pointer to userspace") added a
mutex around staging IOCTL's, some of those mutexes are taken twice.

Fixes: bdd2f9cd10eb ("drm/tegra: Don't leak kernel pointer to userspace")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/7b70a506a9d2355ea6ff19a8c4f4d726b67719b3.1497480754.git.digetx@gmail.com
drivers/gpu/drm/tegra/drm.c