From: Karsten Wiese Date: Fri, 27 Jul 2007 10:15:42 +0000 (+0200) Subject: [ALSA] snd_usb_caiaq_input_free() fix X-Git-Tag: v2.6.24-rc1~832^2~234 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01ade528d424420093973ede20d7394d2cd81190;p=linux-2.6 [ALSA] snd_usb_caiaq_input_free() fix input_free_device()'s comment says: input_free_device() should only be used if input_register_device() was not called yet or if it failed. Once device was registered use input_unregister_device() and memory will be freed once last refrence to the device is dropped. Signed-off-by: Karsten Wiese Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/usb/caiaq/caiaq-input.c b/sound/usb/caiaq/caiaq-input.c index 3acd12db69..6978dabb22 100644 --- a/sound/usb/caiaq/caiaq-input.c +++ b/sound/usb/caiaq/caiaq-input.c @@ -238,7 +238,6 @@ void snd_usb_caiaq_input_free(struct snd_usb_caiaqdev *dev) return; input_unregister_device(dev->input_dev); - input_free_device(dev->input_dev); dev->input_dev = NULL; }