aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorDāvis Mosāns <davispuh@gmail.com>2015-08-21 07:29:22 +0300
committerMoyster <oysterized@gmail.com>2016-08-26 20:46:33 +0200
commit91da3221dca35ef276987320e3a0125bf09398f7 (patch)
tree9266febf51f43ed3bc67f2d8b0e41adabd8788cd /drivers/usb/class
parent5017f309d7111df133bdfcbaa30aac200d998065 (diff)
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> Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'drivers/usb/class')
0 files changed, 0 insertions, 0 deletions