@@ -11,7 +11,7 @@ static DEFINE_MUTEX(umh_list_lock);
11
11
12
12
static int umd_setup (struct subprocess_info * info , struct cred * new )
13
13
{
14
- struct umh_info * umh_info = info -> data ;
14
+ struct umd_info * umd_info = info -> data ;
15
15
struct file * from_umh [2 ];
16
16
struct file * to_umh [2 ];
17
17
int err ;
@@ -43,21 +43,21 @@ static int umd_setup(struct subprocess_info *info, struct cred *new)
43
43
return err ;
44
44
}
45
45
46
- umh_info -> pipe_to_umh = to_umh [1 ];
47
- umh_info -> pipe_from_umh = from_umh [0 ];
48
- umh_info -> pid = task_pid_nr (current );
46
+ umd_info -> pipe_to_umh = to_umh [1 ];
47
+ umd_info -> pipe_from_umh = from_umh [0 ];
48
+ umd_info -> pid = task_pid_nr (current );
49
49
current -> flags |= PF_UMH ;
50
50
return 0 ;
51
51
}
52
52
53
53
static void umd_cleanup (struct subprocess_info * info )
54
54
{
55
- struct umh_info * umh_info = info -> data ;
55
+ struct umd_info * umd_info = info -> data ;
56
56
57
57
/* cleanup if umh_setup() was successful but exec failed */
58
58
if (info -> retval ) {
59
- fput (umh_info -> pipe_to_umh );
60
- fput (umh_info -> pipe_from_umh );
59
+ fput (umd_info -> pipe_to_umh );
60
+ fput (umd_info -> pipe_from_umh );
61
61
}
62
62
}
63
63
@@ -72,12 +72,12 @@ static void umd_cleanup(struct subprocess_info *info)
72
72
*
73
73
* Returns either negative error or zero which indicates success
74
74
* in executing a blob of bytes as a usermode process. In such
75
- * case 'struct umh_info *info' is populated with two pipes
75
+ * case 'struct umd_info *info' is populated with two pipes
76
76
* and a pid of the process. The caller is responsible for health
77
77
* check of the user process, killing it via pid, and closing the
78
78
* pipes when user process is no longer needed.
79
79
*/
80
- int fork_usermode_blob (void * data , size_t len , struct umh_info * info )
80
+ int fork_usermode_blob (void * data , size_t len , struct umd_info * info )
81
81
{
82
82
const char * cmdline = (info -> cmdline ) ? info -> cmdline : "usermodehelper" ;
83
83
struct subprocess_info * sub_info ;
@@ -126,7 +126,7 @@ EXPORT_SYMBOL_GPL(fork_usermode_blob);
126
126
127
127
void __exit_umh (struct task_struct * tsk )
128
128
{
129
- struct umh_info * info ;
129
+ struct umd_info * info ;
130
130
pid_t pid = tsk -> pid ;
131
131
132
132
mutex_lock (& umh_list_lock );
0 commit comments