Re: [PATCH] [v2] scsi: scsi_debug: fix uninitialized variable use

From: Martin K. Petersen
Date: Mon Mar 03 2025 - 21:02:23 EST



Arnd,

> 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.

Applied to 6.15/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering