提交 70b028b7 编写于 作者: J Jonathan Corbet

ipmi: fasync BKL pushdown

This driver really needs it to avoid races against open()
Signed-off-by: NJonathan Corbet <corbet@lwn.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册