Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40832
b: refs/heads/master
c: f3ce6a0
h: refs/heads/master
v: v3
  • Loading branch information
Corey Minyard authored and Linus Torvalds committed Nov 9, 2006
1 parent 562e845 commit 882910a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13bb7e37e5081d03643e2bd64f3f5d21f32e7221
refs/heads/master: f3ce6a0ead8c557e9acdc733addd23cbc206c7e3
12 changes: 11 additions & 1 deletion trunk/drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,13 +376,23 @@ static void free_recv_msg_list(struct list_head *q)
}
}

static void free_smi_msg_list(struct list_head *q)
{
struct ipmi_smi_msg *msg, *msg2;

list_for_each_entry_safe(msg, msg2, q, link) {
list_del(&msg->link);
ipmi_free_smi_msg(msg);
}
}

static void clean_up_interface_data(ipmi_smi_t intf)
{
int i;
struct cmd_rcvr *rcvr, *rcvr2;
struct list_head list;

free_recv_msg_list(&intf->waiting_msgs);
free_smi_msg_list(&intf->waiting_msgs);
free_recv_msg_list(&intf->waiting_events);

/* Wholesale remove all the entries from the list in the
Expand Down

0 comments on commit 882910a

Please sign in to comment.