Searched hist:"91 d9f809da44b42de95a0b9058deea7268bde3c2" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_hwi.c | diff 91d9f809da44b42de95a0b9058deea7268bde3c2 Tue Apr 01 06:58:21 CDT 2014 Maurizio Lombardi <mlombard@redhat.com> bnx2fc: fix memory leak and potential NULL pointer dereference.
If bnx2fc_allocate_hash_table() for some reasons fails, it is possible that the hash_tbl_segments or the hash_tbl_pbl pointers are NULL. In this case bnx2fc_free_hash_table() will panic the system.
this patch also fixes a memory leak, the hash_tbl_segments pointer was never freed.
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com> Acked-by: Eddie Wai <eddie.wai@broadcom.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
|