diff options
author | Jonathan Corbet <corbet@lwn.net> | 2008-06-19 18:07:51 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-07-02 17:06:28 -0400 |
commit | dbfb2df7e9fbd6e5ab8cd9b94b27767fe311fa0d (patch) | |
tree | 91d9db3d9ac2f08b911ac405fc0cc40110cff1be | |
parent | 5d1e3230f4b4a93c6561b0fb5a99bb1eb02227ed (diff) |
Bluetooth VHCI: fasync BKL pushdown
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-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) | |||
318 | static int vhci_fasync(int fd, struct file *file, int on) | 318 | static int vhci_fasync(int fd, struct file *file, int on) |
319 | { | 319 | { |
320 | struct vhci_data *data = file->private_data; | 320 | struct vhci_data *data = file->private_data; |
321 | int err; | 321 | int err = 0; |
322 | 322 | ||
323 | lock_kernel(); | ||
323 | err = fasync_helper(fd, file, on, &data->fasync); | 324 | err = fasync_helper(fd, file, on, &data->fasync); |
324 | if (err < 0) | 325 | if (err < 0) |
325 | return err; | 326 | goto out; |
326 | 327 | ||
327 | if (on) | 328 | if (on) |
328 | data->flags |= VHCI_FASYNC; | 329 | data->flags |= VHCI_FASYNC; |
329 | else | 330 | else |
330 | data->flags &= ~VHCI_FASYNC; | 331 | data->flags &= ~VHCI_FASYNC; |
331 | 332 | ||
332 | return 0; | 333 | out: |
334 | unlock_kernel(); | ||
335 | return err; | ||
333 | } | 336 | } |
334 | 337 | ||
335 | static const struct file_operations vhci_fops = { | 338 | static const struct file_operations vhci_fops = { |