Skip to content

Commit 3a39ac9

Browse files
fntlnzmstemm
andcommitted
hotfix(driver): chmod fillers arg position
Signed-off-by: Lorenzo Fontana <lo@linux.com> Co-authored-by: Mark Stemm <mark.stemm@gmail.com>
1 parent 609a524 commit 3a39ac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/ppm_fillers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4871,7 +4871,7 @@ int f_sys_chmod_x(struct event_filler_arguments *args)
48714871
/*
48724872
* mode
48734873
*/
4874-
syscall_get_arguments_deprecated(current, args->regs, 2, 1, &val);
4874+
syscall_get_arguments_deprecated(current, args->regs, 1, 1, &val);
48754875
res = val_to_ring(args, chmod_mode_to_scap(val), 0, false, 0);
48764876
if (unlikely(res != PPM_SUCCESS))
48774877
return res;
@@ -4902,7 +4902,7 @@ int f_sys_fchmod_x(struct event_filler_arguments *args)
49024902
/*
49034903
* mode
49044904
*/
4905-
syscall_get_arguments_deprecated(current, args->regs, 2, 1, &val);
4905+
syscall_get_arguments_deprecated(current, args->regs, 1, 1, &val);
49064906
res = val_to_ring(args, chmod_mode_to_scap(val), 0, false, 0);
49074907
if (unlikely(res != PPM_SUCCESS))
49084908
return res;

0 commit comments

Comments
 (0)