Skip to contentSkip to conversation

ipmi: list_for_each_entry_rcu() cleanup

PATCH New Li Zefan 1 participant 1 message Jul 17, 2008 IPMI

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 ipmi: list_for_each_entry_rcu() cleanup

In the rcu update side, don't use list_for_each_entry_rcu().

---
 drivers/char/ipmi/ipmi_msghandler.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/ipmi/ipmi_msghandler.c +1 -1
index 8a59aaa..987f3c3 100644
@@ -986,7 +986,7 @@ int ipmi_destroy_user(ipmi_user_t user)
 	 * synchronize_rcu()) then free everything in that list.
 	 */
 	mutex_lock(&intf->cmd_rcvrs_mutex);
-	list_for_each_entry_rcu(rcvr, &intf->cmd_rcvrs, link) {
+	list_for_each_entry(rcvr, &intf->cmd_rcvrs, link) {
 		if (rcvr->user == user) {
 			list_del_rcu(&rcvr->link);
 			rcvr->next = rcvrs;
Signature · 1 line
1.5.4.rc3