From 2d083baf33e102a0aee36019f79472a15c86cfa3 Mon Sep 17 00:00:00 2001 From: Patrick Daly Date: Mon, 14 Nov 2016 14:51:39 -0800 Subject: [PATCH] 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: Patrick Daly --- drivers/soc/qcom/secure_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/secure_buffer.c b/drivers/soc/qcom/secure_buffer.c index d9ebc1edda9c..ac004a597ea2 100644 --- a/drivers/soc/qcom/secure_buffer.c +++ b/drivers/soc/qcom/secure_buffer.c @@ -260,7 +260,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; -- 2.11.0