Android 7.1.1 Release 0.43
gpu: nvgpu: serialize debug session IOCTLs

Hold debug_s->ioctl_lock for all debug session
IOCTLs to prevent multi-threaded user space
IOCTL calls

debug session IOCTL calls are not thread-safe
and hence this serialization is required

NvBug 1832267
Bug: 32370135

Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
(cherry picked from commit 72f27f77472503ccaa840c1fc01efbf5df6075d0)
Signed-off-by: Xia Yang <xiay@nvidia.com>
Change-Id: I847ac951601d4f0093546b592bdb8c8f00185317
(cherry picked from commit 9ffc3dd0659cc276f0da5d11c705d93dbeea16e4)
2 files changed