[PATCH] libfc: fix error handling in fc_exch_rrq_resp()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There seems no cleanup left when FC_EX_CLOSED encountered, which may
be from fc_exch_reset().

Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
---

--- a/drivers/scsi/libfc/fc_exch.c	2010-09-13 07:07:38.000000000 +0800
+++ b/drivers/scsi/libfc/fc_exch.c	2010-10-22 23:17:50.000000000 +0800
@@ -1827,7 +1827,9 @@ static void fc_exch_rrq_resp(struct fc_s
 	if (IS_ERR(fp)) {
 		int err = PTR_ERR(fp);

-		if (err == -FC_EX_CLOSED || err == -FC_EX_TIMEOUT)
+		if (err == -FC_EX_CLOSED)
+			return;
+		if (err == -FC_EX_TIMEOUT)
 			goto cleanup;
 		FC_EXCH_DBG(aborted_ep, "Cannot process RRQ, "
 			    "frame error %d\n", err);
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux