Re: [PATCH] ASoC: core: delete component->card_list in soc_remove_component only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bard

Thank you for your patch

> From: Bard Liao <yung-chuan.liao@xxxxxxxxxxxxxxx>
> 
> We add component->card_list in the end of soc_probe_component(). In
> other words, component->card_list will not be added if there is an
> error in the soc_probe_component() function. So we can't delete
> component->card_list in the error handling of soc_probe_component().
> 
> Fixes: 22d1423187e5 ("ASoC: soc-core: add soc_cleanup_component()")
> Signed-off-by: Bard Liao <yung-chuan.liao@xxxxxxxxxxxxxxx>
> ---

Hmm... what happen if you get error at soc_probe_component() ?
What does your "can't delete component->card_list" mean ?
Kernel Oops or warning ?

I tried to create an error on purpose at soc_probe_component(),
but, there was no kernel oops, no warning, etc.
It just can't create sound card. It is very normal for me.
Or, which kernel are you using ?

Thank you for your help !!
Best regards
---
Kuninori Morimoto
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux