]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libsas: fix deref before check in commit 70b25f890ce
authorJames Bottomley <James.Bottomley@suse.de>
Thu, 13 May 2010 14:31:54 +0000 (09:31 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:15 +0000 (11:22 -0700)
commit8ab0ea3ee657ad1235590c3e43cf9d4fbb4de105
treeb079c45a3e9b5fa1cc64beefd9ce145618410dd9
parent649f9bdb073f3934412ca543e64edda132a05fb1
libsas: fix deref before check in commit 70b25f890ce

commit 1b4d0d8ea7b3cbd107f345ab766416f9b38ce66a upstream.

commit 70b25f890ce9f0520c64075ce9225a5b020a513e
Author: Tejun Heo <tj@kernel.org>
Date:   Thu Apr 15 09:00:08 2010 +0900

    [SCSI] fix locking around blk_abort_request()

Introduced a reference before check problem, fix this by moving the
lock shorthand code to be right at the point of actual use.

Reported-by: Dan Carpenter <error27@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/libsas/sas_ata.c
drivers/scsi/libsas/sas_scsi_host.c