Re: [PATCH] bnx2fc: do not scan uninitialized lists in case of error.

2014-06-19 Thread Eddie Wai
On Thu, 2014-06-19 at 15:05 +0200, Maurizio Lombardi wrote: > 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 p

[PATCH] bnx2fc: do not scan uninitialized lists in case of error.

2014-06-19 Thread Maurizio Lombardi
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