libsas: fix deref before check in commit 70b25f890c

commit 1b4d0d8ea7 upstream.

commit 70b25f890c
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>
This commit is contained in:
James Bottomley 2010-05-13 09:31:54 -05:00 • committed by Greg Kroah-Hartman
commit 8ab0ea3ee6
2 changed files with 11 additions and 10 deletions