Skip to content

Commit

Permalink
chore(driver): always initialize enum ppm_overlay.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Jan 28, 2025
1 parent ccc3dbb commit ed95fff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions driver/ppm_fillers.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ int f_sys_open_x(struct event_filler_arguments *args) {
uint64_t ino = 0;
int res;
int64_t retval;
enum ppm_overlay ol;
enum ppm_overlay ol = PPM_NOT_OVERLAY_FS;

/*
* fd
Expand Down Expand Up @@ -3313,7 +3313,7 @@ int f_sys_creat_x(struct event_filler_arguments *args) {
uint64_t ino = 0;
int res;
int64_t retval;
enum ppm_overlay ol;
enum ppm_overlay ol = PPM_NOT_OVERLAY_FS;
int16_t creat_flags = 0;

/*
Expand Down Expand Up @@ -3877,7 +3877,7 @@ int f_sys_openat_x(struct event_filler_arguments *args) {
int res;
int32_t fd;
int64_t retval;
enum ppm_overlay ol;
enum ppm_overlay ol = PPM_NOT_OVERLAY_FS;

retval = (int64_t)syscall_get_return_value(current, args->regs);
res = val_to_ring(args, retval, 0, false, 0);
Expand Down Expand Up @@ -5403,7 +5403,7 @@ int f_sys_openat2_x(struct event_filler_arguments *args) {
int res;
int32_t fd;
int64_t retval;
enum ppm_overlay ol;
enum ppm_overlay ol = PPM_NOT_OVERLAY_FS;
#ifdef __NR_openat2
struct open_how how;
#endif
Expand Down Expand Up @@ -5561,7 +5561,7 @@ int f_sys_open_by_handle_at_x(struct event_filler_arguments *args) {
long retval = 0;
char *pathname = NULL;
int32_t mountfd = 0;
enum ppm_overlay ol;
enum ppm_overlay ol = PPM_NOT_OVERLAY_FS;

/* Parameter 1: ret (type: PT_FD) */
retval = syscall_get_return_value(current, args->regs);
Expand Down

0 comments on commit ed95fff

Please sign in to comment.