Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100401
b: refs/heads/master
c: dbfb2df
h: refs/heads/master
i:
  100399: 7f8bf2f
v: v3
  • Loading branch information
Jonathan Corbet committed Jul 2, 2008
1 parent d7d51ce commit 73c64c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 5d1e3230f4b4a93c6561b0fb5a99bb1eb02227ed
refs/heads/master: dbfb2df7e9fbd6e5ab8cd9b94b27767fe311fa0d
9 changes: 6 additions & 3 deletions trunk/drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,18 +318,21 @@ static int vhci_release(struct inode *inode, struct file *file)
static int vhci_fasync(int fd, struct file *file, int on)
{
struct vhci_data *data = file->private_data;
int err;
int err = 0;

lock_kernel();
err = fasync_helper(fd, file, on, &data->fasync);
if (err < 0)
return err;
goto out;

if (on)
data->flags |= VHCI_FASYNC;
else
data->flags &= ~VHCI_FASYNC;

return 0;
out:
unlock_kernel();
return err;
}

static const struct file_operations vhci_fops = {
Expand Down

0 comments on commit 73c64c5

Please sign in to comment.