mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
[SCSI] scsi_transport_spi: fix the misuse of scsi_execute return value
[jejb: fix rejections] Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
ccc607f6d2
commit
4d3fef9e69
@ -113,7 +113,7 @@ static int spi_execute(struct scsi_device *sdev, const void *cmd,
|
|||||||
REQ_FAILFAST_TRANSPORT |
|
REQ_FAILFAST_TRANSPORT |
|
||||||
REQ_FAILFAST_DRIVER,
|
REQ_FAILFAST_DRIVER,
|
||||||
NULL);
|
NULL);
|
||||||
if (result & DRIVER_SENSE) {
|
if (driver_byte(result) & DRIVER_SENSE) {
|
||||||
struct scsi_sense_hdr sshdr_tmp;
|
struct scsi_sense_hdr sshdr_tmp;
|
||||||
if (!sshdr)
|
if (!sshdr)
|
||||||
sshdr = &sshdr_tmp;
|
sshdr = &sshdr_tmp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user