Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbd580d2 authored by Viraja Kommaraju's avatar Viraja Kommaraju
Browse files

ASoC: mdm9607: Fix to avoid NULL pointer dereference



Pointer to machine data structure is deferenced in error
case where it is NULL. Fix to avoid this possible
NULL pointer dereference.

CRs-Fixed: 1037404
Change-Id: I604b2ca0d59354fe3a45cdc8ea0c41e78ef41263
Signed-off-by: default avatarViraja Kommaraju <virajak@codeaurora.org>
parent ad8cf1bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -247,8 +247,8 @@ static int mdm_mi2s_clk_ctl(struct snd_soc_pcm_runtime *rtd, bool enable,
		 lpass_clk->clk_set_mode);

	kfree(lpass_clk);
done:
	clk_users = atomic_read(&pdata->prim_clk_usrs);
done:
	return ret;
}