From: Jonathan Corbet Date: Mon, 23 Jun 2008 23:00:14 +0000 (-0600) Subject: ipmi: fasync BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=70b028b7ea94f1b36c61f3ee1c921cc3a87812e6;p=linux-2.6-omap-h63xx.git ipmi: fasync BKL pushdown This driver really needs it to avoid races against open() Signed-off-by: Jonathan Corbet --- diff --git a/drivers/char/ipmi/ipmi_devintf.c b/drivers/char/ipmi/ipmi_devintf.c index c816656d6bf..c11a4048345 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) 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); }