We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e96647 commit b7629ceCopy full SHA for b7629ce
drivers/nubus/proc.c
@@ -75,6 +75,7 @@ struct proc_dir_entry *nubus_proc_add_rsrc_dir(struct proc_dir_entry *procdir,
75
if (!procdir)
76
return NULL;
77
snprintf(name, sizeof(name), "%x", ent->type);
78
+ remove_proc_subtree(name, procdir);
79
return proc_mkdir_data(name, 0555, procdir, (void *)lanes);
80
}
81
@@ -164,6 +165,7 @@ void nubus_proc_add_rsrc_mem(struct proc_dir_entry *procdir,
164
165
pded = nubus_proc_alloc_pde_data(nubus_dirptr(ent), size);
166
else
167
pded = NULL;
168
169
proc_create_data(name, S_IFREG | 0444, procdir,
170
&nubus_rsrc_proc_ops, pded);
171
@@ -178,6 +180,7 @@ void nubus_proc_add_rsrc(struct proc_dir_entry *procdir,
178
180
return;
179
181
182
183
184
185
&nubus_rsrc_proc_ops,
186
nubus_proc_alloc_pde_data(data, 0));
0 commit comments