android_kernel_samsung_msm8976/drivers/scsi/aacraid
Raghava Aditya Renukunta 324d4df9b1 aacraid: Fix memory leak in aac_fib_map_free
commit f88fa79a61726ce9434df9b4aede36961f709f17 upstream.

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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2016-06-07 10:42:45 +02:00
..
Makefile
TODO
aachba.c
aacraid.h
commctrl.c aacraid: prevent invalid pointer dereference 2013-11-29 11:11:40 -08:00
comminit.c
commsup.c aacraid: Fix memory leak in aac_fib_map_free 2016-06-07 10:42:45 +02:00
dpcsup.c
linit.c SCSI: Disable WRITE SAME for RAID and virtual host adapter drivers 2013-12-11 22:36:28 -08:00
nark.c
rkt.c
rx.c
sa.c
src.c