mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 18:42:29 +03:00
gpu: nvgpu: fix value leaking in log
The timeout message of nvgpu_timeout_expired_msg() leaks a stack value (%llx) in error log on timeout. As the format expects 1 argument and none is given, fix this by specifying the required argument. Bug 2626449 Change-Id: I6eddbeaa8b6d91a51d755dfb3df9e7c800f0d161 Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2205423 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Debarshi Dutta <ddutta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Ankur Kishore <ankkishore@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
f8e4393ace
commit
6208e86ca8
@@ -692,7 +692,8 @@ int gv11b_fb_mmu_invalidate_replay(struct gk20a *g,
|
||||
}
|
||||
nvgpu_udelay(5);
|
||||
} while (nvgpu_timeout_expired_msg(&timeout,
|
||||
"invalidate replay failed on 0x%llx") == 0);
|
||||
"invalidate replay failed 0x%lx",
|
||||
invalidate_replay_val) == 0);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "invalidate replay timedout");
|
||||
}
|
||||
|
||||
@@ -231,7 +231,8 @@ int tu104_fb_mmu_invalidate_replay(struct gk20a *g,
|
||||
}
|
||||
nvgpu_udelay(5);
|
||||
} while (nvgpu_timeout_expired_msg(&timeout,
|
||||
"invalidate replay failed on 0x%llx") == 0);
|
||||
"invalidate replay failed on 0x%lx",
|
||||
invalidate_replay_val) == 0);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "invalidate replay timedout");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user