TTY: call tty_port_destroy in the rest of drivers
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / tty / hvc / hvsi.c
index 5b95b4f28cf347e56cbdc3b73a249b0feae56630..68357a6e4de997344d0a8e59ffb0cd6612035f93 100644 (file)
@@ -1218,6 +1218,7 @@ static int __init hvsi_console_init(void)
                if (hp->virq == 0) {
                        printk(KERN_ERR "%s: couldn't create irq mapping for 0x%x\n",
                                __func__, irq[0]);
+                       tty_port_destroy(&hp->port);
                        continue;
                }