Commit 70b028b7 authored by Jonathan Corbet's avatar Jonathan Corbet

ipmi: fasync BKL pushdown

This driver really needs it to avoid races against open()
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent dda6445e
......@@ -101,7 +101,9 @@ static int ipmi_fasync(int fd, struct file *file, int on)
struct ipmi_file_private *priv = file->private_data;
int result;
lock_kernel(); /* could race against open() otherwise */
result = fasync_helper(fd, file, on, &priv->fasync_queue);
unlock_kernel();
return (result);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment