mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
8a01798884c3d16fbdad19ba331cb7b981b32ce0
When the carveout size is changed to 2GB, mem->size << PAGE_SHIFT will overflow the int limit and get wrapped to negative value. Hence during freeing bitmap, one of the comparison condition is not meeting, resulting into not freeing bitmap. Ultimately the entire bitmap get consumed even though it is expected to have empty bits. Fix this by typecasting the size to u64. Bug 3962552 Change-Id: Ieaf93a3a91062d3f630921259aa9b3935853e91c Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2861614 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Description
No description provided