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

Commit ced1c2a4 authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ASoC: msm: Prevent panic while in remove dai links



If for some reason, sound card registration fails,
all the dai-links and their components will get
unregistered within soc_remove_dai_links() function.
The dai driver remove callback function that gets called
from this function will free the dai structure.
Currently the component structure is also getting
freed in the driver remove callback function. However
this component structure will be referenced later
when the component remove is called, which leads to
kernel panic. Avoid panic by handling the component
remove properly.

CRs-fixed: 867212
Change-Id: Icfd6ff4b41ce2cc154d7d961883ecb833ffad989
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent cdecac51
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment