mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
The sg->length may happen to be a large size, and this will overflow the local segment_size when accumulating sg->length to it at line "segment_size += sg->length". Since segment_size of MODS_DMABUF_GET_PHYSICAL_ADDRESS structure is defined in u64 type, this patch fixes the bug by changing the local varible to u64 as well. Bug 2521255 Change-Id: Id1fb6d149f55f4fd9238a399393ed2efae77c84a Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2105445 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ashish Mhetre <amhetre@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>