diff options
author | Arnd Bergmann <arnd@arndb.de> | 2025-02-25 12:56:47 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-03-03 05:07:58 +0300 |
commit | cee4f928beee900fd05da24d6b5e9127d2adae37 (patch) | |
tree | 96c3824f87372ca80a50e353bf0e7626070b4591 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ed3e4842224ff721f48154c1fed6ef97241249e6 (diff) | |
download | linux-cee4f928beee900fd05da24d6b5e9127d2adae37.tar.xz |
scsi: scsi_debug: Fix uninitialized variable use
It appears that a typo has made it into the newly added code
drivers/scsi/scsi_debug.c:3035:3: error: variable 'len' is uninitialized when used here [-Werror,-Wuninitialized]
3035 | len += resp_compression_m_pg(ap, pcontrol, target, devip->tape_dce);
| ^~~
Replace the '+=' with the intended '=' here.
Fixes: 568354b24c7d ("scsi: scsi_debug: Add compression mode page for tapes")
Acked-by: Kai Mäkisara <kai.makisara@kolumbus.fi>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250225095651.2636811-1-arnd@kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions