<br><font size=2><tt>list_for_each_entry() should be list_for_each_entry_safe()
in ipoib_mcast_restart_task(). Here is the patch. Please review it.</tt></font>
<br>
<br><font size=2><tt>Signed-off-by: Shirley Ma <xma@us.ibm.com></tt></font>
<br>
<div>
<br><font size=2 face="sans-serif">diff -urpN infiniband/ulp/ipoib/ipoib_multicast.c
infiniband-mcast/ulp/ipoib/ipoib_multicast.c<br>
--- infiniband/ulp/ipoib/ipoib_multicast.c        2005-02-24
20:20:58.000000000 -0800<br>
+++ infiniband-mcast/ulp/ipoib/ipoib_multicast.c        2005-02-28
09:37:16.387272016 -0800<br>
@@ -908,7 +908,7 @@ void ipoib_mcast_restart_task(void *dev_<br>
         spin_unlock_irqrestore(&priv->lock,
flags);<br>
 <br>
         /* We have to cancel outside of the
spinlock */<br>
-        list_for_each_entry(mcast, &remove_list,
list) {<br>
+        list_for_each_entry_safe(mcast, &remove_list,
list) {<br>
                 ipoib_mcast_leave(mcast->dev,
mcast);<br>
                 ipoib_mcast_free(mcast);<br>
         }</font>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Thanks<br>
Shirley Ma<br>
IBM Linux Technology Center<br>
15300 SW Koll Parkway<br>
Beaverton, OR 97006-6063<br>
Phone(Fax): (503) 578-7638<br>
<br>
</font></div>