Re: [PATCH v2] scsi: target: iscsi: reject invalid size Extended CDB AHS

From: Martin K. Petersen

Date: Mon Apr 13 2026 - 22:36:43 EST



Carlos,

>>> + u16 cdb_length = ahslength - 1 + ISCSI_CDB_SIZE;
>> AFAIK, a variable declarationis allowed to be in the beginning of code block only.
>
> You're absolutely right, happy to send v3 if the maintainer prefers.

Yes, please. Best to stay consistent with the existing coding style in a
given file.

--
Martin K. Petersen