diff options
Diffstat (limited to 'drivers/block/nvme-scsi.c')
-rw-r--r-- | drivers/block/nvme-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/nvme-scsi.c b/drivers/block/nvme-scsi.c index a4cd6d691c63..0b4b2775600e 100644 --- a/drivers/block/nvme-scsi.c +++ b/drivers/block/nvme-scsi.c | |||
@@ -329,7 +329,7 @@ INQUIRY_EVPD_BIT_MASK) ? 1 : 0) | |||
329 | (GET_U32_FROM_CDB(cdb, READ_CAP_16_CDB_ALLOC_LENGTH_OFFSET)) | 329 | (GET_U32_FROM_CDB(cdb, READ_CAP_16_CDB_ALLOC_LENGTH_OFFSET)) |
330 | 330 | ||
331 | #define IS_READ_CAP_16(cdb) \ | 331 | #define IS_READ_CAP_16(cdb) \ |
332 | ((cdb[0] == SERVICE_ACTION_IN && cdb[1] == SAI_READ_CAPACITY_16) ? 1 : 0) | 332 | ((cdb[0] == SERVICE_ACTION_IN_16 && cdb[1] == SAI_READ_CAPACITY_16) ? 1 : 0) |
333 | 333 | ||
334 | /* Request Sense Helper Macros */ | 334 | /* Request Sense Helper Macros */ |
335 | #define GET_REQUEST_SENSE_ALLOC_LENGTH(cdb) \ | 335 | #define GET_REQUEST_SENSE_ALLOC_LENGTH(cdb) \ |
@@ -2947,7 +2947,7 @@ static int nvme_scsi_translate(struct nvme_ns *ns, struct sg_io_hdr *hdr) | |||
2947 | case READ_CAPACITY: | 2947 | case READ_CAPACITY: |
2948 | retcode = nvme_trans_read_capacity(ns, hdr, cmd); | 2948 | retcode = nvme_trans_read_capacity(ns, hdr, cmd); |
2949 | break; | 2949 | break; |
2950 | case SERVICE_ACTION_IN: | 2950 | case SERVICE_ACTION_IN_16: |
2951 | if (IS_READ_CAP_16(cmd)) | 2951 | if (IS_READ_CAP_16(cmd)) |
2952 | retcode = nvme_trans_read_capacity(ns, hdr, cmd); | 2952 | retcode = nvme_trans_read_capacity(ns, hdr, cmd); |
2953 | else | 2953 | else |