msm-shared: scm: Properly init SCM command struct on alloc

Init SCM command struct fields (including response and buffers) to zero
on SCM command allocation. This fixes possible error on restore_secure_cfg()
call when the SCM command response buffer is not zero - it appears the
response value is not set which is interpreted as error when it is not zero
by default

CRs-Fixed: 596993

Change-Id: Ia0e80918765ae8db93c9a126cda640e6352cba42
diff --git a/platform/msm_shared/scm.c b/platform/msm_shared/scm.c
index c64c392..1ba6be8 100644
--- a/platform/msm_shared/scm.c
+++ b/platform/msm_shared/scm.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -69,6 +69,7 @@
 
 	cmd = memalign(CACHE_LINE, ROUNDUP(len, CACHE_LINE));
 	if (cmd) {
+		memset(cmd, 0, len);
 		cmd->len = len;
 		cmd->buf_offset = offsetof(struct scm_command, buf);
 		cmd->resp_hdr_offset = cmd->buf_offset + cmd_size;