linux/drivers/scsi/bnx2fc
Maurizio Lombardi 9172b763a7 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 <mlombard@redhat.com>
Acked-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2014-06-25 13:29:30 +02:00
..
57xx_hsi_bnx2fc.h
bnx2fc.h [SCSI] bnx2fc: Updated version to 2.4.2 2014-03-15 10:17:47 -07:00
bnx2fc_constants.h cnic: Fix parity error code conflict 2012-03-21 21:57:36 -04:00
bnx2fc_debug.c [SCSI] bnx2fc: Reduce object size by consolidating formats 2012-07-20 08:58:17 +01:00
bnx2fc_debug.h [SCSI] bnx2fc: Reduce object size by consolidating formats 2012-07-20 08:58:17 +01:00
bnx2fc_els.c [SCSI] bnx2fc: Update copyright dates 2013-05-02 07:32:25 -07:00
bnx2fc_fcoe.c Merge branch 'sched/urgent' into sched/core, to avoid conflicts 2014-05-07 13:15:46 +02:00
bnx2fc_hwi.c bnx2fc: fix memory leak in bnx2fc_allocate_hash_table() 2014-05-19 19:29:57 +02:00
bnx2fc_io.c bnx2fc: do not scan uninitialized lists in case of error. 2014-06-25 13:29:30 +02:00
bnx2fc_tgt.c SCSI misc on 20140401 2014-04-01 18:49:04 -07:00
Kconfig
Makefile [SCSI] bnx2fc: Reduce object size by consolidating formats 2012-07-20 08:58:17 +01:00