The MAINTENANCE IN array is incorrectly used when decoding variable length commands. Use the right array. Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> --- diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c index 9129bcf..db68e3b 100644 --- a/drivers/scsi/constants.c +++ b/drivers/scsi/constants.c @@ -219,7 +219,7 @@ static void print_opcode_name(unsigned char * cdbp, int cdb_len) break; } sa = (cdbp[8] << 8) + cdbp[9]; - name = get_sa_name(maint_in_arr, MAINT_IN_SZ, sa); + name = get_sa_name(variable_length_arr, VARIABLE_LENGTH_SZ, sa); if (name) { printk("%s", name); if ((cdb_len > 0) && (len != cdb_len)) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html