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:
Phani Kumar Uppalapati <phaniu@codeaurora.org>
Loading
Please register or sign in to comment