Loading drivers/bluetooth/hci_ldisc.c +13 −12 Original line number Diff line number Diff line Loading @@ -286,15 +286,17 @@ static int hci_uart_tty_open(struct tty_struct *tty) static void hci_uart_tty_close(struct tty_struct *tty) { struct hci_uart *hu = (void *)tty->disc_data; struct hci_dev *hdev; BT_DBG("tty %p", tty); /* Detach from the tty */ tty->disc_data = NULL; if (hu) { struct hci_dev *hdev = hu->hdev; if (!hu) return; hdev = hu->hdev; if (hdev) hci_uart_close(hdev); Loading @@ -308,7 +310,6 @@ static void hci_uart_tty_close(struct tty_struct *tty) kfree(hu); } } /* hci_uart_tty_wakeup() * Loading Loading
drivers/bluetooth/hci_ldisc.c +13 −12 Original line number Diff line number Diff line Loading @@ -286,15 +286,17 @@ static int hci_uart_tty_open(struct tty_struct *tty) static void hci_uart_tty_close(struct tty_struct *tty) { struct hci_uart *hu = (void *)tty->disc_data; struct hci_dev *hdev; BT_DBG("tty %p", tty); /* Detach from the tty */ tty->disc_data = NULL; if (hu) { struct hci_dev *hdev = hu->hdev; if (!hu) return; hdev = hu->hdev; if (hdev) hci_uart_close(hdev); Loading @@ -308,7 +310,6 @@ static void hci_uart_tty_close(struct tty_struct *tty) kfree(hu); } } /* hci_uart_tty_wakeup() * Loading