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

Commit 99bdc2d1 authored by Patrick Daly's avatar Patrick Daly Committed by Liam Mark
Browse files

soc: qcom: secure_buffer: Fix an uninitialized variable



Ensure variables are set before the are used to prevent random behavior.

Change-Id: Ib31e5aca648c0f442afe4cbe576ad79786fe6427
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 4c1ea12f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@ int hyp_assign_table(struct sg_table *table,
			int *dest_vmids, int *dest_perms,
			int dest_nelems)
{
	int ret;
	int ret = 0;
	struct scm_desc desc = {0};
	u32 *source_vm_copy;
	size_t source_vm_copy_size;