diff options
author | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 00:07:51 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-07-02 23:06:28 +0200 |
commit | dbfb2df7e9fbd6e5ab8cd9b94b27767fe311fa0d (patch) | |
tree | 91d9db3d9ac2f08b911ac405fc0cc40110cff1be /drivers/bluetooth | |
parent | tty_io: fasync BKL pushdown (diff) | |
download | linux-dbfb2df7e9fbd6e5ab8cd9b94b27767fe311fa0d.tar.xz linux-dbfb2df7e9fbd6e5ab8cd9b94b27767fe311fa0d.zip |
Bluetooth VHCI: fasync BKL pushdown
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_vhci.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index 7734bc9af3ca..d97700aa54a9 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c @@ -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 = { |