mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: fix value leaked 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. Manual port of https://git-master.nvidia.com/r/c/linux-nvgpu/+/2205423 Bug 2780861 Bug 3051385 Change-Id: Ic223e4b79bde718108826f095740b10b54a5e84d Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2366452 (cherry picked from commit 372837506af77e2c5b8489ee2123292778abe75d) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2370285 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sungwook Kim <sungwookk@nvidia.com> Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
3d4a70a4b9
commit
1b161b6c7a
@@ -1504,7 +1504,8 @@ int gv11b_fb_mmu_invalidate_replay(struct gk20a *g,
|
|||||||
}
|
}
|
||||||
nvgpu_udelay(5);
|
nvgpu_udelay(5);
|
||||||
} while (!nvgpu_timeout_expired_msg(&timeout,
|
} while (!nvgpu_timeout_expired_msg(&timeout,
|
||||||
"invalidate replay failed on 0x%llx"));
|
"invalidate replay failed 0x%lx",
|
||||||
|
invalidate_replay_val));
|
||||||
if (err) {
|
if (err) {
|
||||||
nvgpu_err(g, "invalidate replay timedout");
|
nvgpu_err(g, "invalidate replay timedout");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user