Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150857
b: refs/heads/master
c: 3857abc
h: refs/heads/master
i:
  150855: 52cebc0
v: v3
  • Loading branch information
Marcel Holtmann committed Jun 8, 2009
1 parent fddb503 commit 001a842
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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: 4db7589f3d88c09d740560f1dcf2d4d843d918f2
refs/heads/master: 3857abc622102b808de11ff3393d541b826ab952
4 changes: 0 additions & 4 deletions trunk/drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,9 @@ static int vhci_open(struct inode *inode, struct file *file)
skb_queue_head_init(&data->readq);
init_waitqueue_head(&data->read_wait);

lock_kernel();
hdev = hci_alloc_dev();
if (!hdev) {
kfree(data);
unlock_kernel();
return -ENOMEM;
}

Expand All @@ -271,12 +269,10 @@ static int vhci_open(struct inode *inode, struct file *file)
BT_ERR("Can't register HCI device");
kfree(data);
hci_free_dev(hdev);
unlock_kernel();
return -EBUSY;
}

file->private_data = data;
unlock_kernel();

return nonseekable_open(inode, file);
}
Expand Down

0 comments on commit 001a842

Please sign in to comment.