Skip to content
Commit 54f7190b authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Fix Oops at reloading beep devices



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>
parent 411fe85c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment