* [PATCH][iSCSI-SCST]: Fix list corruption if SCST target registration fails
@ 2009-01-30 18:20 Vladislav Bolkhovitin
0 siblings, 0 replies; only message in thread
From: Vladislav Bolkhovitin @ 2009-01-30 18:20 UTC (permalink / raw)
To: linux-scsi; +Cc: linux-kernel, scst-devel
This patch fixes list corruption if SCST target registration fails.
Signed-off-by: Arne Redlich <agr@powerkom-dd.de>
Signed-off-by: Vladislav Bolkhovitin <vst@vlnb.net>
target.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: iscsi-scst/kernel/target.c
===================================================================
--- iscsi-scst/kernel/target.c (revision 648)
+++ iscsi-scst/kernel/target.c (working copy)
@@ -116,8 +116,6 @@ static int iscsi_target_create(struct ta
mutex_init(&target->target_mutex);
INIT_LIST_HEAD(&target->session_list);
- list_add(&target->target_list_entry, &target_list);
-
target->scst_tgt = scst_register(&iscsi_template, target->name);
if (!target->scst_tgt) {
PRINT_ERROR("%s", "scst_register() failed");
@@ -125,6 +123,8 @@ static int iscsi_target_create(struct ta
goto out_free;
}
+ list_add(&target->target_list_entry, &target_list);
+
return 0;
out_free:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-30 18:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-30 18:20 [PATCH][iSCSI-SCST]: Fix list corruption if SCST target registration fails Vladislav Bolkhovitin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome