Fix COMMAND DATA LENGTH in All_commands parameter data of REPORT SUPPORTED OPERATION CODES

Reported by Sebastian Herbszt <herbszt@gmx.de>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5504 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2014-05-07 02:13:11 +00:00
parent 8d4a2f0a49
commit 5e40f25182

View File

@@ -2249,7 +2249,7 @@ static int scst_report_supported_opcodes(struct scst_cmd *cmd)
switch (options) {
case 0: /* all */
put_unaligned_be32(buf_len - 3, &buf[0]);
put_unaligned_be32(buf_len - 4, &buf[0]);
offs = 4;
for (i = 0; i < supp_opcodes_cnt; i++) {
op = supp_opcodes[i];