mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
isp1362-hcd: don't reimplement proc_create_data()
... especially in a racy way Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
5a787a6820
commit
96e7d9158f
@ -2192,14 +2192,11 @@ static void create_debug_file(struct isp1362_hcd *isp1362_hcd)
|
||||
{
|
||||
struct proc_dir_entry *pde;
|
||||
|
||||
pde = create_proc_entry(proc_filename, 0, NULL);
|
||||
pde = proc_create_data(proc_filename, 0, NULL, &proc_ops, isp1362_hcd);
|
||||
if (pde == NULL) {
|
||||
pr_warning("%s: Failed to create debug file '%s'\n", __func__, proc_filename);
|
||||
return;
|
||||
}
|
||||
|
||||
pde->proc_fops = &proc_ops;
|
||||
pde->data = isp1362_hcd;
|
||||
isp1362_hcd->pde = pde;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user