Loading drivers/bluetooth/hci_ldisc.c +4 −1 Original line number Diff line number Diff line Loading @@ -386,12 +386,15 @@ static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, char *f { struct hci_uart *hu = (void *)tty->disc_data; if (!hu || tty != hu->tty) if (!hu || tty != hu->tty || !data) return; if (!test_bit(HCI_UART_PROTO_SET, &hu->flags)) return; if (!hu->proto) return; spin_lock(&hu->rx_lock); hu->proto->recv(hu, (void *) data, count); Loading Loading
drivers/bluetooth/hci_ldisc.c +4 −1 Original line number Diff line number Diff line Loading @@ -386,12 +386,15 @@ static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, char *f { struct hci_uart *hu = (void *)tty->disc_data; if (!hu || tty != hu->tty) if (!hu || tty != hu->tty || !data) return; if (!test_bit(HCI_UART_PROTO_SET, &hu->flags)) return; if (!hu->proto) return; spin_lock(&hu->rx_lock); hu->proto->recv(hu, (void *) data, count); Loading