OSDN Git Service

ASoC: msm-lsm-client: free lsm client data in msm_lsm_close
authorVidyakumar Athota <vathota@codeaurora.org>
Wed, 16 Dec 2015 23:42:39 +0000 (15:42 -0800)
committerDavid Keitel <dkeitel@codeaurora.org>
Thu, 24 Mar 2016 04:15:41 +0000 (21:15 -0700)
commitdf607d1693a267c3956d817ac8ec25c42cac79bb
tree826e8fb826aef7d4e803bd0820a318204371a708
parentc912f24c79fb67b340ec85df702c639d84f7efc1
ASoC: msm-lsm-client: free lsm client data in msm_lsm_close

Currently lsm client data is deallocated when q6lsm_open() fails
which can cause memory corruption if lsm client data is accessed
after freed. Fix this issue by deallocating the client data only
in msm_lsm_close().

Change-Id: If048c26a0ffd8a346a28622183cbf2ba1e7e5ff3
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
include/sound/q6lsm.h
sound/soc/msm/qdsp6v2/msm-lsm-client.c