mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
nvgpu_locate_pte() can be attempted on an address that is not mapped yet. When the address is just right, it's possible that the pd entries haven't been allocated yet; return an error in such case before accessing the indexed entry. Bug 200778663 Change-Id: I4f062531d30aec746d6828c2d05c046bc912bd2a Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2606175 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit