Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e219220c authored by Dhoat Harpal's avatar Dhoat Harpal Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: smem: Fix uninitialized usage of a stack variable



variable size is output variable and is not initialized,
printing it can lead to information leak.

variable size is removed from log message.

CRs-Fixed: 1093837
Change-Id: I95cf227bb82a2ee7c6f43db151f75a942e8e55ce
Signed-off-by: default avatarDhoat Harpal <hdhoat@codeaurora.org>
parent 4de82316
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -375,7 +375,7 @@ static void *__smem_get_entry_secure(unsigned int id,
	uint32_t a_hdr_size;
	int rc;

	SMEM_DBG("%s(%u, %u, %u, %u, %d, %d)\n", __func__, id, *size, to_proc,
	SMEM_DBG("%s(%u, %u, %u, %d, %d)\n", __func__, id, to_proc,
					flags, skip_init_check, use_rspinlock);

	if (!skip_init_check && !smem_initialized_check())
@@ -818,7 +818,7 @@ EXPORT_SYMBOL(smem_alloc);
void *smem_get_entry(unsigned int id, unsigned int *size, unsigned int to_proc,
							unsigned int flags)
{
	SMEM_DBG("%s(%u, %u, %u, %u)\n", __func__, id, *size, to_proc, flags);
	SMEM_DBG("%s(%u, %u, %u)\n", __func__, id, to_proc, flags);

	/*
	 * Handle the circular dependecy between SMEM and software implemented