Files
linux-nvgpu/drivers/gpu/nvgpu/common
Amurthyreddy 1a3d75790d gpu: nvgpu: QNX devg-nvrm crash fix.
Input paran VM Will be used to get PTE size for GVA spaces and it can be
NULL if buddy_allocator initialization is not for GVA space. As part of 
recent changes VM was being accessed for non GVA space case and for that
VM was NULL, causing the crash.

In this fix added a prior check and VM will be accessed only if input 
flag is set to GPU_ALLOC_GVA_SPACE.

Bug 200452730

Change-Id: I9dcb1f2bd5e639c37a7152b99453bb5b46fe4087
Signed-off-by: Amurthyreddy <amurthyreddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1842530
Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Prateek Sethi <prsethi@nvidia.com>
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
2018-09-26 09:09:19 -07:00
..
2018-09-26 09:09:19 -07:00