From: Jonathan Corbet Date: Thu, 19 Jun 2008 22:07:51 +0000 (-0600) Subject: Bluetooth VHCI: fasync BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dbfb2df7e9fbd6e5ab8cd9b94b27767fe311fa0d;p=linux-2.6-omap-h63xx.git Bluetooth VHCI: fasync BKL pushdown Signed-off-by: Jonathan Corbet --- diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index 7734bc9af3c..d97700aa54a 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 = {