Revision 2280521719e81919283b82902ac24058f87dfc1b authored by Dāvis Mosāns on 21 August 2015, 04:29:22 UTC, committed by James Bottomley on 27 October 2015, 02:21:07 UTC
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>
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Odin.com>
1 parent 15e3d5a
History
File Mode Size
Kconfig -rw-r--r-- 1.7 KB
Makefile -rw-r--r-- 3.6 KB
system_certificates.S -rw-r--r-- 535 bytes
system_keyring.c -rw-r--r-- 4.0 KB

back to top