Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbfb2df7 authored by Jonathan Corbet's avatar Jonathan Corbet
Browse files

Bluetooth VHCI: fasync BKL pushdown



Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 5d1e3230
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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 = {