linux/drivers/scsi/aacraid
Raghava Aditya Renukunta f88fa79a61 aacraid: Fix memory leak in aac_fib_map_free
aac_fib_map_free() calls pci_free_consistent() without checking that
dev->hw_fib_va is not NULL and dev->max_fib_size is not zero.If they are
indeed NULL/0, this will result in a hang as pci_free_consistent() will
attempt to invalidate cache for the entire 64-bit address space
(which would take a very long time).

Fixed by adding a check to make sure that dev->hw_fib_va and
dev->max_fib_size are not NULL and 0 respectively.

Fixes: 9ad5204d6 - "[SCSI]aacraid: incorrect dma mapping mask during blinked recover or user initiated reset"
Cc: stable@vger.kernel.org

Signed-off-by: Raghava Aditya Renukunta <raghavaaditya.renukunta@pmcs.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-02-23 21:27:02 -05:00
..
aachba.c aacraid: SCSI blk tag support 2016-02-23 21:27:02 -05:00
aacraid.h aacraid: Added EEH support 2016-02-23 21:27:02 -05:00
commctrl.c aacraid: IOCTL pass-through command fix 2015-04-09 16:44:49 -07:00
comminit.c aacraid: Use pci_enable_msix_range() 2015-11-09 16:12:13 -08:00
commsup.c aacraid: Fix memory leak in aac_fib_map_free 2016-02-23 21:27:02 -05:00
dpcsup.c aacraid: SCSI blk tag support 2016-02-23 21:27:02 -05:00
linit.c aacraid: Added EEH support 2016-02-23 21:27:02 -05:00
Makefile [SCSI] aacraid: Add new code for PMC-Sierra's SRC based controller family 2011-03-23 11:36:58 -05:00
nark.c [SCSI] aacraid: Use resource_size_t for IO mem pointers and offsets 2012-07-20 08:58:43 +01:00
rkt.c [SCSI] aacraid: Use resource_size_t for IO mem pointers and offsets 2012-07-20 08:58:43 +01:00
rx.c aacraid: Add Power Management support 2015-11-09 15:59:18 -08:00
sa.c aacraid: Add Power Management support 2015-11-09 15:59:18 -08:00
src.c aacraid: Fix RRQ overload 2016-02-23 21:27:02 -05:00
TODO