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

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

mpt: fasync BKL pushdown



It looks like this driver really needs the BKL here.

Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 9465efc9
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -548,11 +548,15 @@ static int
mptctl_fasync(int fd, struct file *filep, int mode)
mptctl_fasync(int fd, struct file *filep, int mode)
{
{
	MPT_ADAPTER	*ioc;
	MPT_ADAPTER	*ioc;
	int ret;


	lock_kernel();
	list_for_each_entry(ioc, &ioc_list, list)
	list_for_each_entry(ioc, &ioc_list, list)
		ioc->aen_event_read_flag=0;
		ioc->aen_event_read_flag=0;


	return fasync_helper(fd, filep, mode, &async_queue);
	ret = fasync_helper(fd, filep, mode, &async_queue);
	unlock_kernel();
	return ret;
}
}


static int
static int