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[] = { ...@@ -62,14 +62,18 @@ static struct irda_entry dir[] = {
void __init irda_proc_register(void) void __init irda_proc_register(void)
{ {
int i; int i;
struct proc_dir_entry *d;
proc_irda = proc_mkdir("net/irda", NULL); proc_irda = proc_mkdir("net/irda", NULL);
if (proc_irda == NULL) if (proc_irda == NULL)
return; return;
proc_irda->owner = THIS_MODULE; proc_irda->owner = THIS_MODULE;
for (i=0; i<ARRAY_SIZE(dir); i++) for (i=0; i<ARRAY_SIZE(dir); i++) {
create_proc_info_entry(dir[i].name,0,proc_irda,dir[i].fn); 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