[SCSI] be2iscsi: Return async handle of unknown opcode to free list.
authorJayamohan Kallickal <jayamohan.kallickal@emulex.com>
Wed, 4 Apr 2012 04:41:48 +0000 (23:41 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 25 Apr 2012 08:27:40 +0000 (09:27 +0100)
The async handle corresponding to unknown Opcode was not freed
earlier. This code does the fix for that.

Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/be2iscsi/be_main.c

index dad66de50aa0c8f76b517880dcd4064dcfe12f99..d0c7d97769c36070b081d04d236529ae03f7d7ee 100644 (file)
@@ -1659,8 +1659,7 @@ hwi_fwd_async_msg(struct beiscsi_conn *beiscsi_conn,
                                            phdr, hdr_len, pfirst_buffer,
                                            offset);
 
-       if (status == 0)
-               hwi_free_async_msg(phba, cri);
+       hwi_free_async_msg(phba, cri);
        return 0;
 }