From: Maurizio Lombardi Date: Tue, 1 Apr 2014 11:58:21 +0000 (+0200) Subject: bnx2fc: fix memory leak and potential NULL pointer dereference. X-Git-Tag: omap-for-v3.16/fixes-against-rc1~13^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d9f809da44b42de95a0b9058deea7268bde3c2;p=pandora-kernel.git 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 Acked-by: Eddie Wai Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed