|
@@ -231,15 +231,6 @@ static int hci_uart_send_frame(struct sk_buff *skb)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static void hci_uart_destruct(struct hci_dev *hdev)
|
|
|
-{
|
|
|
- if (!hdev)
|
|
|
- return;
|
|
|
-
|
|
|
- BT_DBG("%s", hdev->name);
|
|
|
- kfree(hdev->driver_data);
|
|
|
-}
|
|
|
-
|
|
|
/* ------ LDISC part ------ */
|
|
|
/* hci_uart_tty_open
|
|
|
*
|
|
@@ -316,6 +307,8 @@ static void hci_uart_tty_close(struct tty_struct *tty)
|
|
|
hci_free_dev(hdev);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ kfree(hu);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -397,7 +390,6 @@ static int hci_uart_register_dev(struct hci_uart *hu)
|
|
|
hdev->close = hci_uart_close;
|
|
|
hdev->flush = hci_uart_flush;
|
|
|
hdev->send = hci_uart_send_frame;
|
|
|
- hdev->destruct = hci_uart_destruct;
|
|
|
hdev->parent = hu->tty->dev;
|
|
|
|
|
|
hdev->owner = THIS_MODULE;
|