Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223614
b: refs/heads/master
c: d931956
h: refs/heads/master
v: v3
  • Loading branch information
Jun Nie authored and Gustavo F. Padovan committed Dec 8, 2010
1 parent 2b25700 commit 233e113
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 183f732c3f3f307d5673e17b69de6894e1dd2918
refs/heads/master: d9319560b86839506c2011346b1f2e61438a3c73
6 changes: 4 additions & 2 deletions trunk/drivers/bluetooth/hci_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,10 @@ static void hci_uart_tty_close(struct tty_struct *tty)

if (test_and_clear_bit(HCI_UART_PROTO_SET, &hu->flags)) {
hu->proto->close(hu);
hci_unregister_dev(hdev);
hci_free_dev(hdev);
if (hdev) {
hci_unregister_dev(hdev);
hci_free_dev(hdev);
}
}
}
}
Expand Down

0 comments on commit 233e113

Please sign in to comment.