* [PATCH] (3/3) llc - set owner on /proc/net/llc directory
@ 2003-08-29 17:51 Stephen Hemminger
2003-08-31 2:05 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2003-08-29 17:51 UTC (permalink / raw)
To: Arnaldo Carvalho de Melo, David S. Miller; +Cc: netdev
Owner field on /proc/net/llc directory needs to be set,
otherwise badness if some application has directory open while
module being unloaded.
diff -Nru a/net/llc/llc_proc.c b/net/llc/llc_proc.c
--- a/net/llc/llc_proc.c Fri Aug 29 09:27:45 2003
+++ b/net/llc/llc_proc.c Fri Aug 29 09:27:45 2003
@@ -245,6 +245,7 @@
llc_proc_dir = proc_mkdir("llc", proc_net);
if (!llc_proc_dir)
goto out;
+ llc_proc_dir->owner = THIS_MODULE;
p = create_proc_entry("socket", S_IRUGO, llc_proc_dir);
if (!p)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-31 2:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-29 17:51 [PATCH] (3/3) llc - set owner on /proc/net/llc directory Stephen Hemminger
2003-08-31 2:05 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).