aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_vhci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth/hci_vhci.c')
-rw-r--r--drivers/bluetooth/hci_vhci.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c
index 2ed6ab1c6e1b..44a801292d62 100644
--- a/drivers/bluetooth/hci_vhci.c
+++ b/drivers/bluetooth/hci_vhci.c
@@ -103,11 +103,6 @@ static int vhci_send_frame(struct sk_buff *skb)
103 return 0; 103 return 0;
104} 104}
105 105
106static void vhci_destruct(struct hci_dev *hdev)
107{
108 kfree(hdev->driver_data);
109}
110
111static inline ssize_t vhci_get_user(struct vhci_data *data, 106static inline ssize_t vhci_get_user(struct vhci_data *data,
112 const char __user *buf, size_t count) 107 const char __user *buf, size_t count)
113{ 108{
@@ -248,7 +243,6 @@ static int vhci_open(struct inode *inode, struct file *file)
248 hdev->close = vhci_close_dev; 243 hdev->close = vhci_close_dev;
249 hdev->flush = vhci_flush; 244 hdev->flush = vhci_flush;
250 hdev->send = vhci_send_frame; 245 hdev->send = vhci_send_frame;
251 hdev->destruct = vhci_destruct;
252 246
253 hdev->owner = THIS_MODULE; 247 hdev->owner = THIS_MODULE;
254 248
@@ -273,6 +267,7 @@ static int vhci_release(struct inode *inode, struct file *file)
273 hci_free_dev(hdev); 267 hci_free_dev(hdev);
274 268
275 file->private_data = NULL; 269 file->private_data = NULL;
270 kfree(data);
276 271
277 return 0; 272 return 0;
278} 273}