diff options
author | Maurizio Lombardi <mlombard@redhat.com> | 2014-04-01 13:58:21 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-05-19 19:29:57 +0200 |
commit | 91d9f809da44b42de95a0b9058deea7268bde3c2 (patch) | |
tree | 357e90d1a9f23f6244d45fb0c5bafd47982aa653 /drivers/pcmcia/vrc4173_cardu.c | |
parent | b044d1498cbfef5e11c9c390288f4b841c9b328c (diff) |
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>
Diffstat (limited to 'drivers/pcmcia/vrc4173_cardu.c')
0 files changed, 0 insertions, 0 deletions