File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ struct subprocess_info {
25
25
struct file * file ;
26
26
int wait ;
27
27
int retval ;
28
- pid_t pid ;
29
28
int (* init )(struct subprocess_info * info , struct cred * new );
30
29
void (* cleanup )(struct subprocess_info * info );
31
30
void * data ;
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ static int call_usermodehelper_exec_async(void *data)
102
102
103
103
commit_creds (new );
104
104
105
- sub_info -> pid = task_pid_nr (current );
106
105
if (sub_info -> file ) {
107
106
retval = do_execve_file (sub_info -> file ,
108
107
sub_info -> argv , sub_info -> envp );
@@ -468,6 +467,7 @@ static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)
468
467
469
468
umh_info -> pipe_to_umh = to_umh [1 ];
470
469
umh_info -> pipe_from_umh = from_umh [0 ];
470
+ umh_info -> pid = task_pid_nr (current );
471
471
return 0 ;
472
472
}
473
473
@@ -476,13 +476,12 @@ static void umh_clean_and_save_pid(struct subprocess_info *info)
476
476
struct umh_info * umh_info = info -> data ;
477
477
478
478
/* cleanup if umh_pipe_setup() was successful but exec failed */
479
- if (info -> pid && info -> retval ) {
479
+ if (info -> retval ) {
480
480
fput (umh_info -> pipe_to_umh );
481
481
fput (umh_info -> pipe_from_umh );
482
482
}
483
483
484
484
argv_free (info -> argv );
485
- umh_info -> pid = info -> pid ;
486
485
}
487
486
488
487
/**
You can’t perform that action at this time.
0 commit comments