mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: utils: don't log address of unaligned word
Remove address from log print in nvgpu_mem_is_word_aligned(). This is to meet security requirement not to log sensitive information. JIRA NVGPu-4791 Change-Id: I5a216db9d52eb36acdb8ce3e172b0817d443ebf5 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2284869 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
75175d8081
commit
faec22ff7d
@@ -82,7 +82,7 @@ int nvgpu_strnadd_u32(char *dst, const u32 value, size_t size, u32 radix)
|
|||||||
bool nvgpu_mem_is_word_aligned(struct gk20a *g, u8 *addr)
|
bool nvgpu_mem_is_word_aligned(struct gk20a *g, u8 *addr)
|
||||||
{
|
{
|
||||||
if (((unsigned long)addr % 4UL) != 0UL) {
|
if (((unsigned long)addr % 4UL) != 0UL) {
|
||||||
nvgpu_log_info(g, "addr (%p) not 4-byte aligned", addr);
|
nvgpu_log_info(g, "addr not 4-byte aligned");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user