Minor IPMI fixes
The attached patch fixes a few minor problems with the IPMI driver, a misplaced lock, a wrong semphore type, and a few errors in certain configurations. This is relative to 2.5.67.
Linus, please apply.
Thanks,
-Corey
drivers/char/ipmi/ipmi_devintf.c +2 -2
@@ -81,9 +81,9 @@unsigned int mask =0 ;unsigned long flags; -spin_lock_irqsave (&priv->recv_msg_lock, flags); -poll_wait (file, &priv->wait, wait); + +spin_lock_irqsave (&priv->recv_msg_lock, flags);if (!list_empty (&(priv->recv_msgs))) mask |= (POLLIN |POLLRDNORM );
drivers/char/ipmi/ipmi_watchdog.c +3 -3
@@ -751,7 +751,7 @@ {int rv = -EBUSY ; -down_read (®ister_sem); +down_write (®ister_sem);if (watchdog_user) goto out;
@@ -917,7 +917,7 @@ }else if (strcmp (preaction,"pre_int" ) ==0 ) { preaction_val =WDOG_PRETIMEOUT_MSG_INT ; }else { - action_val =WDOG_PRETIMEOUT_NONE ; + preaction_val =WDOG_PRETIMEOUT_NONE ;printk ("ipmi_watchdog: Unknown preaction '%s', defaulting to" " none\n" , preaction); }
@@ -929,7 +929,7 @@ }else if (strcmp (preop,"preop_give_data" ) ==0 ) { preop_val =WDOG_PREOP_GIVE_DATA ; }else { - action_val =WDOG_PREOP_NONE ; + preop_val =WDOG_PREOP_NONE ;printk ("ipmi_watchdog: Unknown preop '%s', defaulting to" " none\n" , preop); }