From 76b6ad80ffccdeebc2a05292823af94dd0b36ba9 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 19 Feb 2007 12:55:54 +0000 Subject: [PATCH] Oops, the previous commit was wrong. Fix it. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@89 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla2x00-target/qla2x00t.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index be0f5e060..b00c61d1a 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -924,8 +924,9 @@ out_unlock: if (!ha_locked) spin_unlock_irqrestore(&ha->hardware_lock, flags); - if (do_tgt_cmd_done && !in_interrupt()) { - msleep(250); + if (do_tgt_cmd_done) { + if (!in_interrupt()) + msleep(250); scst_tgt_cmd_done(cmd->scst_cmd); /* !! At this point cmd could be already freed !! */ }