diff options
author | Frank Pavlic <pavlic@de.ibm.com> | 2005-05-12 14:19:44 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-15 18:06:16 -0400 |
commit | 109a260b66bfbab7ba9f985495791af21f910218 (patch) | |
tree | de13642e8a847e1273161e750b1da1495c67a777 /drivers | |
parent | 321de3c8cc12bdff073c23524aa1f6ed47cbeee4 (diff) |
[PATCH] s390: multicast address registration in lcs
[patch 2/10] s390: multicast address registration in lcs.
From: Michael Holzheu <holzheu@de.ibm.com>
When setting lcs devices online you can run into an endless loop,
because the code that registers the multicast addresses uses
list_for_each_entry instead of list_for_each_entry_safe.
Signed-off-by: Frank Pavlic <pavlic@de.ibm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/s390/net/lcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 0f76e945b984..8d0262e4adc0 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -11,7 +11,7 @@ | |||
11 | * Frank Pavlic (pavlic@de.ibm.com) and | 11 | * Frank Pavlic (pavlic@de.ibm.com) and |
12 | * Martin Schwidefsky <schwidefsky@de.ibm.com> | 12 | * Martin Schwidefsky <schwidefsky@de.ibm.com> |
13 | * | 13 | * |
14 | * $Revision: 1.96 $ $Date: 2004/11/11 13:42:33 $ | 14 | * $Revision: 1.97 $ $Date: 2005/03/31 09:42:02 $ |
15 | * | 15 | * |
16 | * This program is free software; you can redistribute it and/or modify | 16 | * This program is free software; you can redistribute it and/or modify |
17 | * it under the terms of the GNU General Public License as published by | 17 | * it under the terms of the GNU General Public License as published by |
@@ -59,7 +59,7 @@ | |||
59 | /** | 59 | /** |
60 | * initialization string for output | 60 | * initialization string for output |
61 | */ | 61 | */ |
62 | #define VERSION_LCS_C "$Revision: 1.96 $" | 62 | #define VERSION_LCS_C "$Revision: 1.97 $" |
63 | 63 | ||
64 | static char version[] __initdata = "LCS driver ("VERSION_LCS_C "/" VERSION_LCS_H ")"; | 64 | static char version[] __initdata = "LCS driver ("VERSION_LCS_C "/" VERSION_LCS_H ")"; |
65 | static char debug_buffer[255]; | 65 | static char debug_buffer[255]; |
@@ -1160,7 +1160,7 @@ list_modified: | |||
1160 | } | 1160 | } |
1161 | } | 1161 | } |
1162 | /* re-insert all entries from the failed_list into ipm_list */ | 1162 | /* re-insert all entries from the failed_list into ipm_list */ |
1163 | list_for_each_entry(ipm, &failed_list, list) { | 1163 | list_for_each_entry_safe(ipm, tmp, &failed_list, list) { |
1164 | list_del_init(&ipm->list); | 1164 | list_del_init(&ipm->list); |
1165 | list_add_tail(&ipm->list, &card->ipm_list); | 1165 | list_add_tail(&ipm->list, &card->ipm_list); |
1166 | } | 1166 | } |