android_kernel_samsung_msm8976/drivers/scsi/mvsas
Dāvis Mosāns 1dd69706aa mvsas: Fix NULL pointer dereference in mvs_slot_task_free
commit 2280521719e81919283b82902ac24058f87dfc1b upstream.

When pci_pool_alloc fails in mvs_task_prep then task->lldd_task stays
NULL but it's later used in mvs_abort_task as slot which is passed
to mvs_slot_task_free causing NULL pointer dereference.

Just return from mvs_slot_task_free when passed with NULL slot.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=101891
Signed-off-by: Dāvis Mosāns <davispuh@gmail.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-11-09 10:12:59 -08:00
..
Kconfig
Makefile
mv_64xx.c
mv_64xx.h
mv_94xx.c
mv_94xx.h
mv_chips.h
mv_defs.h
mv_init.c
mv_sas.c mvsas: Fix NULL pointer dereference in mvs_slot_task_free 2015-11-09 10:12:59 -08:00
mv_sas.h