From: Maurizio Lombardi Date: Thu, 19 Jun 2014 13:05:00 +0000 (+0200) Subject: bnx2fc: do not scan uninitialized lists in case of error. X-Git-Tag: omap-for-v3.16/fixes-rc4~12^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9172b763a776bae644d140748a0352fc67277a4c;p=pandora-kernel.git bnx2fc: do not scan uninitialized lists in case of error. In case of of error, the bnx2fc_cmd_mgr_alloc() function will call the bnx2fc_cmd_mgr_free() to perform the cleanup. The problem is that in one case the latter may try to scan some not-yet initialized lists, resulting in a kernel panic. This patch prevents this from happening by freeing the lists before calling bnx2fc_cmd_mgr_free(). Signed-off-by: Maurizio Lombardi Acked-by: Eddie Wai Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed