]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/drivers/serial-u16550.c
[ALSA] fix some memory leaks
[linux-2.6-omap-h63xx.git] / sound / drivers / serial-u16550.c
index 13b46d12564aae174a025f76b665c3e0b543946f..1a7fbefe4740de3e013a262fbbf34e85956c76fd 100644 (file)
@@ -789,6 +789,7 @@ static int __init snd_uart16550_create(struct snd_card *card,
 
        if ((err = snd_uart16550_detect(uart)) <= 0) {
                printk(KERN_ERR "no UART detected at 0x%lx\n", iobase);
+               snd_uart16550_free(uart);
                return -ENODEV;
        }