Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=01ade528d424420093973ede20d7394d2cd81190
Commit:     01ade528d424420093973ede20d7394d2cd81190
Parent:     52a6db82efe345af62aa72c6ce9dcb89a4d993b5
Author:     Karsten Wiese <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 27 12:15:42 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 15:58:06 2007 +0200

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/usb/caiaq/caiaq-input.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/sound/usb/caiaq/caiaq-input.c b/sound/usb/caiaq/caiaq-input.c
index 3acd12d..6978dab 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;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to