Skip to content

Commit 002c487

Browse files
author
Damien Le Moal
committed
ata: libata-scsi: improve ata_scsiop_maint_in()
Allow translation of REPORT_SUPPORTED_OPERATION_CODES commands using the command format 0x3, that is, checking support for commands that are identified using an opcode and a service action. Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Niklas Cassel <[email protected]>
1 parent 7574a83 commit 002c487

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/ata/libata-scsi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3266,11 +3266,12 @@ static unsigned int ata_scsiop_maint_in(struct ata_scsi_args *args, u8 *rbuf)
32663266
u8 supported = 0;
32673267
unsigned int err = 0;
32683268

3269-
if (cdb[2] != 1) {
3269+
if (cdb[2] != 1 && cdb[2] != 3) {
32703270
ata_dev_warn(dev, "invalid command format %d\n", cdb[2]);
32713271
err = 2;
32723272
goto out;
32733273
}
3274+
32743275
switch (cdb[3]) {
32753276
case INQUIRY:
32763277
case MODE_SENSE:

0 commit comments

Comments
 (0)