Hi Corey,
You revert a patch by mistake in the following patch
> Date Fri, 21 Oct 2005 09:49:09 -0500
> From Corey Minyard <>
> Subject [PATCH 1/9] ipmi: use refcount in message handler
(http://lkml.org/lkml/2005/10/21/85)
Signed-off-by: Hironobu Ishii <[email protected]>
diff -urNp linux-2.6.14-git13/drivers/char/ipmi/ipmi_msghandler.c linux-2.6.14-git13.modified/drivers/char/ipmi/ipmi_msghandler.c
--- linux-2.6.14-git13/drivers/char/ipmi/ipmi_msghandler.c 2005-11-11 10:50:37.000000000 +0900
+++ linux-2.6.14-git13.modified/drivers/char/ipmi/ipmi_msghandler.c 2005-11-11 19:53:21.000000000 +0900
@@ -2648,7 +2648,7 @@ void ipmi_smi_msg_received(ipmi_smi_t
spin_lock_irqsave(&intf->waiting_msgs_lock, flags);
if (!list_empty(&intf->waiting_msgs)) {
list_add_tail(&msg->link, &intf->waiting_msgs);
- spin_unlock(&intf->waiting_msgs_lock);
+ spin_unlock_irqrestore(&intf->waiting_msgs_lock, flags);
goto out;
}
spin_unlock_irqrestore(&intf->waiting_msgs_lock, flags);
@@ -2657,9 +2657,9 @@ void ipmi_smi_msg_received(ipmi_smi_t
if (rv > 0) {
/* Could not handle the message now, just add it to a
list to handle later. */
- spin_lock(&intf->waiting_msgs_lock);
+ spin_lock_irqsave(&intf->waiting_msgs_lock, flags);
list_add_tail(&msg->link, &intf->waiting_msgs);
- spin_unlock(&intf->waiting_msgs_lock);
+ spin_unlock_irqrestore(&intf->waiting_msgs_lock, flags);
} else if (rv == 0) {
ipmi_free_smi_msg(msg);
}
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]