• Takashi Iwai's avatar
    ALSA: hda - Fix Oops at reloading beep devices · 54f7190b
    Takashi Iwai authored
    The recent change for supporting dynamic beep device allocation caused
    a problem resulting in Oops at reloading the driver.  Also, it ignores
    the error from input device registration.
    
    This patch fixes the wrong check in snd_hda_detach_beep_device(), and
    returns an error when the input device registration fails properly.
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    54f7190b
hda_beep.c 6.69 KB