Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32513
b: refs/heads/master
c: 420cc35
h: refs/heads/master
i:
  32511: fc2e117
v: v3
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed Jul 12, 2006
1 parent 83c3d24 commit c43a9c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25ea6db04a96d7871e7ece27d566f3228d59d932
refs/heads/master: 420cc3505f91246699bcfb88d30c4466adc0b87b
4 changes: 2 additions & 2 deletions trunk/drivers/bluetooth/hci_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static int hci_uart_flush(struct hci_dev *hdev)

/* Flush any pending characters in the driver and discipline. */
tty_ldisc_flush(tty);
if (tty->driver->flush_buffer)
if (tty->driver && tty->driver->flush_buffer)
tty->driver->flush_buffer(tty);

if (test_bit(HCI_UART_PROTO_SET, &hu->flags))
Expand Down Expand Up @@ -290,7 +290,7 @@ static int hci_uart_tty_open(struct tty_struct *tty)
if (tty->ldisc.flush_buffer)
tty->ldisc.flush_buffer(tty);

if (tty->driver->flush_buffer)
if (tty->driver && tty->driver->flush_buffer)
tty->driver->flush_buffer(tty);

return 0;
Expand Down

0 comments on commit c43a9c4

Please sign in to comment.