Message ID | 20250225095651.2636811-1-arnd@kernel.org |
---|---|
State | New |
Headers | show |
Series | [v2] scsi: scsi_debug: fix uninitialized variable use | expand |
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index 722ee8c067ae..f3e9a63bbf02 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c @@ -3032,7 +3032,7 @@ static int resp_mode_sense(struct scsi_cmnd *scp, case 0xf: /* Compression Mode Page (tape) */ if (!is_tape) goto bad_pcode; - len += resp_compression_m_pg(ap, pcontrol, target, devip->tape_dce); + len = resp_compression_m_pg(ap, pcontrol, target, devip->tape_dce); offset += len; break; case 0x11: /* Partition Mode Page (tape) */