ALSA: mpu401: Fix missing initialization of irq field
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Jul 2012 09:35:55 +0000 (11:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2012 12:04:04 +0000 (14:04 +0200)
commitbc733d495267a23ef8660220d696c6e549ce30b3
tree008c758e246a885cf0f163cb61820028ac0e9a1a
parent6162552b0de6ba80937c3dd53e084967851cd199
ALSA: mpu401: Fix missing initialization of irq field

The irq field of struct snd_mpu401 is supposed to be initialized to -1.
Since it's set to zero as of now, a probing error before the irq
installation results in a kernel warning "Trying to free already-free
IRQ 0".

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=44821
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/mpu401/mpu401_uart.c