bnx2fc: fix memory leak in bnx2fc_allocate_hash_table()
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 1 Apr 2014 11:58:22 +0000 (13:58 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 17:29:57 +0000 (19:29 +0200)
commitfdbcbcab0eae6773430546697ace0b3fe48e7fbc
tree3a59ba61a666d785b8747c62e96b586f81eab9d1
parent91d9f809da44b42de95a0b9058deea7268bde3c2
bnx2fc: fix memory leak in bnx2fc_allocate_hash_table()

In case of error, the bnx2fc_allocate_hash_table() didn't free
all the memory it allocated.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Acked-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/bnx2fc/bnx2fc_hwi.c