From: Jayamohan Kallickal Date: Wed, 4 Apr 2012 04:41:48 +0000 (-0500) Subject: [SCSI] be2iscsi: Return async handle of unknown opcode to free list. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=605c6cd201714535e2723a60197228050f863a8f;p=linux-beck.git [SCSI] be2iscsi: Return async handle of unknown opcode to free list. The async handle corresponding to unknown Opcode was not freed earlier. This code does the fix for that. Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index dad66de50aa0..d0c7d97769c3 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -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; }