mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user