aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-03-23 19:52:19 +0100
committerPaul Kocialkowski <contact@paulk.fr>2013-03-23 19:52:19 +0100
commitba93873c8e53a8455b6f48bee4c7f4f598a93515 (patch)
treeb2c5fe08ad4b4a052ea1a12e5c36dd2943696430 /samsung-ipc
parentdc5c21b8484cba27551998f2d11a055bb821cfbf (diff)
downloadexternal_libsamsung-ipc-ba93873c8e53a8455b6f48bee4c7f4f598a93515.zip
external_libsamsung-ipc-ba93873c8e53a8455b6f48bee4c7f4f598a93515.tar.gz
external_libsamsung-ipc-ba93873c8e53a8455b6f48bee4c7f4f598a93515.tar.bz2
xmm6260: Set message info data to NULL before alloc (or no alloc)
Change-Id: I5eb463630dfd611e0f3db439ea1a1efb420bcc5a Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ipc')
-rw-r--r--samsung-ipc/device/xmm6260/xmm6260_ipc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/samsung-ipc/device/xmm6260/xmm6260_ipc.c b/samsung-ipc/device/xmm6260/xmm6260_ipc.c
index b19b021..1052dce 100644
--- a/samsung-ipc/device/xmm6260/xmm6260_ipc.c
+++ b/samsung-ipc/device/xmm6260/xmm6260_ipc.c
@@ -131,6 +131,7 @@ int xmm6260_ipc_fmt_client_recv(struct ipc_client *client, struct ipc_message_in
response->type = ipc.type;
response->cmd = IPC_COMMAND(response);
response->length = ipc.length - sizeof(ipc);
+ response->data = NULL;
if (response->length > 0) {
response->data = (unsigned char*)malloc(response->length);