aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2008-06-23 19:00:14 -0400
committerJonathan Corbet <corbet@lwn.net>2008-07-02 17:06:28 -0400
commit70b028b7ea94f1b36c61f3ee1c921cc3a87812e6 (patch)
tree1d21a2e4f2e2434a16f1d7b31649f6954f74140b
parentdda6445e219b5d1fd67e9426ce8d23f8fbfaaf66 (diff)
ipmi: fasync BKL pushdown
This driver really needs it to avoid races against open() Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-rw-r--r--drivers/char/ipmi/ipmi_devintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_devintf.c b/drivers/char/ipmi/ipmi_devintf.c
index c816656d6bfb..c11a40483459 100644
--- a/drivers/char/ipmi/ipmi_devintf.c
+++ b/drivers/char/ipmi/ipmi_devintf.c
@@ -101,7 +101,9 @@ static int ipmi_fasync(int fd, struct file *file, int on)
101 struct ipmi_file_private *priv = file->private_data; 101 struct ipmi_file_private *priv = file->private_data;
102 int result; 102 int result;
103 103
104 lock_kernel(); /* could race against open() otherwise */
104 result = fasync_helper(fd, file, on, &priv->fasync_queue); 105 result = fasync_helper(fd, file, on, &priv->fasync_queue);
106 unlock_kernel();
105 107
106 return (result); 108 return (result);
107} 109}