mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
In case of a vzalloc failure, the pd structure could be left in a inconsistent state. This patch fixes the issue by overwritting the "num_entries" field when vzalloc fails. JIRA NVGPU-907 Change-Id: I635e7c203094a43da9107bd8ef194ae67a2eb15a Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1972431 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>