]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: snd-usb-caiaq: Fix NULL dereference in input.c
authorWilliam Light <wrl@illest.net>
Mon, 10 Oct 2011 15:54:22 +0000 (15:54 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 13 Oct 2011 06:16:42 +0000 (08:16 +0200)
commitfaa44a48b85e589a6ef5ce24c096bdbba43de725
tree630491400d6a8362fa57f8dfc293ee39ea1f6dbf
parentf18d197d983ab53d969b349c95b3f191aa78dd51
ALSA: snd-usb-caiaq: Fix NULL dereference in input.c

There was a case where a newly-registered input device could be opened before
a necessary variable in the device structure was set. When code tried to use
the variable in the URB reply callback, it would cause an Oops.

This fix sets the aforementioned variable before calling input_register_device.

Signed-off-by: William Light <wrl@illest.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/caiaq/input.c