summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPatrick Daly <pdaly@codeaurora.org>2016-11-14 14:51:39 -0800
committerPatrick Daly <pdaly@codeaurora.org>2016-11-14 15:00:09 -0800
commit2d083baf33e102a0aee36019f79472a15c86cfa3 (patch)
treec0eda0adb3a700001a8032001e03151f3b877026 /drivers
parent5b7da258870763a6fe394b3ed1d96ddba59cce28 (diff)
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 <pdaly@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/qcom/secure_buffer.c2
1 files changed, 1 insertions, 1 deletions
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;