mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 16:51:45 +00:00
[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 <fzu@wemgehoertderstaat.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
52a6db82ef
commit
01ade528d4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user