[PATCH] ALSA: hda - Fix the return value if cb func is already registered

Takashi Iwai tiwai at suse.de
Thu Oct 22 08:19:01 CEST 2020


On Thu, 22 Oct 2020 05:02:21 +0200,
Hui Wang wrote:
> 
> If the cb function is already registered, should return the pointer
> of the structure hda_jack_callback which contains this cb func, but
> instead it returns the NULL.
> 
> Now fix it by replacing func_is_already_in_callback_list() with
> find_callback_from_list().
> 
> Fixes: f4794c6064a8 ("ALSA:hda - Don't register a cb func if it is registered already")
> Reported-and-suggested-by: Dan Carpenter <dan.carpenter at oracle.com>
> Cc: <stable at vger.kernel.org>
> Signed-off-by: Hui Wang <hui.wang at canonical.com>

Thanks, applied.


Takashi


More information about the Alsa-devel mailing list