Commit 69fbf005 authored by Aviral Gupta's avatar Aviral Gupta Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: fix the target crash due to the NULL pointer dereference



During the close of the FE, the mclk is disabled which accesses the
codec drv data.
In case if the tapan codec was not initialized, then close sequence
will result in the null pointer dereference.
Fix by adding a null check before accessing the codec data structure.

CRs-Fixed: 635065
Change-Id: I0678826d073a69b99a05a5b628920be89d210519
Signed-off-by: default avatarAviral Gupta <aviralg@codeaurora.org>
parent 74d6196a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment