Skip to content

Commit df80c77

Browse files
Nicolas Pitrecarlescufi
Nicolas Pitre
authored andcommitted
scripts: gen_syscalls: fix access validation size on extra params array
It was one below the entire array size. Signed-off-by: Nicolas Pitre <[email protected]>
1 parent 2cdac33 commit df80c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gen_syscalls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def marshall_defs(func_name, func_type, args):
335335

336336
if nmrsh > 6:
337337
mrsh += ("\tZ_OOPS(Z_SYSCALL_MEMORY_READ(more, "
338-
+ str(nmrsh - 6) + " * sizeof(uintptr_t)));\n")
338+
+ str(nmrsh - 5) + " * sizeof(uintptr_t)));\n")
339339

340340
for i, split_rec in enumerate(split_parms):
341341
arg_num, mrsh_num = split_rec

0 commit comments

Comments
 (0)