]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
be2iscsi: Return async handle of unknown opcode to free list.
authorroot <root@localhost.localdomain>
Wed, 2 May 2012 14:26:56 +0000 (19:56 +0530)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 11 May 2012 00:08:54 +0000 (17:08 -0700)
 The async handle corresponding to unknown Opcode was not freed
 earlier. This code does the fix for that.

Signed-off-by: root <root@localhost.(none)>
drivers/scsi/be2iscsi/be_main.c

index fda6b36d7dc88e2c5bffb0d66cf9f57646e48748..4157455ceb785a20fbb4aecec0d6fe3b7c2743b3 100644 (file)
@@ -1658,8 +1658,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;
 }