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@xxxxxxxxxx> > Cc: <stable@xxxxxxxxxxxxxxx> > Signed-off-by: Hui Wang <hui.wang@xxxxxxxxxxxxx> Thanks, applied. Takashi