git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SCSI] scsi_transport_spi: fix the misuse of scsi_execute return value
[safe/jmp/linux-2.6]
/
drivers
/
scsi
/
scsi_transport_spi.c
diff --git
a/drivers/scsi/scsi_transport_spi.c
b/drivers/scsi/scsi_transport_spi.c
index
96361aa
..
f49f55c
100644
(file)
--- a/
drivers/scsi/scsi_transport_spi.c
+++ b/
drivers/scsi/scsi_transport_spi.c
@@
-113,7
+113,7
@@
static int spi_execute(struct scsi_device *sdev, const void *cmd,
REQ_FAILFAST_TRANSPORT |
REQ_FAILFAST_DRIVER,
NULL);
- if (
result
& DRIVER_SENSE) {
+ if (
driver_byte(result)
& DRIVER_SENSE) {
struct scsi_sense_hdr sshdr_tmp;
if (!sshdr)
sshdr = &sshdr_tmp;