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

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

 



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



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux