From 2fe8a0c519f53bc3a4093cd920079784f386bde8 Mon Sep 17 00:00:00 2001 From: Aun-Ali Zaidi Date: Fri, 19 May 2017 19:47:37 -0500 Subject: [PATCH] ANDROID: ASoC: msm: qdsp6v2: Fix memset argument order. With commit f6896ad1b5966405e87ef668922cadddad52f2eb, an incorrectly ordered memset() command was present. This causes compilation to fail on GCC 5+. Fix the order of the passed parameters to properly set requested memory. BUG=38500815 TEST= Kernel compiles and boots bullhead. Change-Id: Ic7cc759bb19385ad6839d2003358c7ead6df94be Tested-by: Aun-Ali Zaidi Signed-off-by: Aun-Ali Zaidi Signed-off-by: Nick Desaulniers --- sound/soc/msm/qdsp6v2/q6lsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/msm/qdsp6v2/q6lsm.c b/sound/soc/msm/qdsp6v2/q6lsm.c index 1d26bcceb2b0..a7448c57f73f 100644 --- a/sound/soc/msm/qdsp6v2/q6lsm.c +++ b/sound/soc/msm/qdsp6v2/q6lsm.c @@ -1423,7 +1423,7 @@ int q6lsm_set_one_param(struct lsm_client *client, struct lsm_module_param_ids ids; u8 *packet; - memset(&ids, sizeof(ids), 0); + memset(&ids, 0, sizeof(ids)); switch (param_type) { case LSM_ENDPOINT_DETECT_THRESHOLD: { ids.module_id = p_info->module_id;