snd_usb_caiaq_input_free() fix
Subsystems (2)
PATCH 1/1 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]>
---
sound/usb/caiaq/caiaq-input.c +0 -1
@@ -238,7 +238,6 @@ void snd_usb_caiaq_input_free(struct sndreturn ;input_unregister_device (dev->input_dev); -input_free_device (dev->input_dev); dev->input_dev =NULL ; }