mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
misc: mods: fix potential integer overflow
Bug 3461002 CID 10138562 Change-Id: I788b036fe53a248c45c808ad91696bdbdda2ad9b Signed-off-by: Chris Dragan <kdragan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2729925 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
20730c6ceb
commit
14ab31a527
@@ -2258,7 +2258,7 @@ static void clear_contiguous_cache(struct mods_client *client,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
d_size = 4 << d_line_shift;
|
d_size = (u64)4 << d_line_shift;
|
||||||
cur = virt_start & ~(d_size - 1);
|
cur = virt_start & ~(d_size - 1);
|
||||||
do {
|
do {
|
||||||
asm volatile("dc civac, %0" : : "r" (cur) : "memory");
|
asm volatile("dc civac, %0" : : "r" (cur) : "memory");
|
||||||
|
|||||||
Reference in New Issue
Block a user