]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix Oops at reloading beep devices
authorTakashi Iwai <tiwai@suse.de>
Sun, 27 Dec 2009 12:27:39 +0000 (13:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 27 Dec 2009 12:34:01 +0000 (13:34 +0100)
commit412db010560af3a0ac282623d8eb7a39bf6376db
treee6645e96a9aac1c9248ebf6d8a23b9de35dd2edf
parent4ebbc9334cf34baad1830a0288f7806a6c516be8
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: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_beep.c