Commit e4de7b9a authored by Stephen Hemminger's avatar Stephen Hemminger

[IRDA]: Set owner field on /proc/net/irda sub entries.

parent 922555ed
......@@ -62,14 +62,18 @@ static struct irda_entry dir[] = {
void __init irda_proc_register(void)
{
int i;
struct proc_dir_entry *d;
proc_irda = proc_mkdir("net/irda", NULL);
if (proc_irda == NULL)
return;
proc_irda->owner = THIS_MODULE;
for (i=0; i<ARRAY_SIZE(dir); i++)
create_proc_info_entry(dir[i].name,0,proc_irda,dir[i].fn);
for (i=0; i<ARRAY_SIZE(dir); i++) {
d = create_proc_info_entry(dir[i].name,0,proc_irda,dir[i].fn);
if (d)
d->owner = THIS_MODULE;
}
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment