netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][ATM]: [clip] delay /proc/net/atm/arp creation
@ 2004-02-11 14:32 chas williams
  2004-02-12  6:06 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: chas williams @ 2004-02-11 14:32 UTC (permalink / raw)
  To: davem; +Cc: netdev

this patch delay's creation of /proc/net/atm/arp until
after the kmem_cache_create.  mea culpa in advance for
the shoddy #ifdef.

please apply to 2.6

thanks!

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1550  -> 1.1551 
#	      net/atm/clip.c	1.30    -> 1.31   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/02/10	chas@relax.cmf.nrl.navy.mil	1.1551
# [ATM]: [clip] delay /proc/net/atm/arp creation
# --------------------------------------------
#
diff -Nru a/net/atm/clip.c b/net/atm/clip.c
--- a/net/atm/clip.c	Tue Feb 10 17:05:22 2004
+++ b/net/atm/clip.c	Tue Feb 10 17:05:22 2004
@@ -1008,14 +1008,6 @@
 
 static int __init atm_clip_init(void)
 {
-#ifdef CONFIG_PROC_FS
-	struct proc_dir_entry *p;
-
-	p = create_proc_entry("arp", S_IRUGO, atm_proc_root);
-	if (p)
-		p->proc_fops = &arp_seq_fops;
-#endif
-
 	/* we should use neigh_table_init() */
 	clip_tbl.lock = RW_LOCK_UNLOCKED;
 	clip_tbl.kmem_cachep = kmem_cache_create(clip_tbl.id,
@@ -1032,6 +1024,16 @@
 
 	clip_tbl_hook = &clip_tbl;
 	register_atm_ioctl(&clip_ioctl_ops);
+
+#ifdef CONFIG_PROC_FS
+{
+	struct proc_dir_entry *p;
+
+	p = create_proc_entry("arp", S_IRUGO, atm_proc_root);
+	if (p)
+		p->proc_fops = &arp_seq_fops;
+}
+#endif
 
 	return 0;
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][ATM]: [clip] delay /proc/net/atm/arp creation
  2004-02-11 14:32 [PATCH][ATM]: [clip] delay /proc/net/atm/arp creation chas williams
@ 2004-02-12  6:06 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-02-12  6:06 UTC (permalink / raw)
  To: chas3; +Cc: chas, netdev

On Wed, 11 Feb 2004 09:32:29 -0500
chas williams (contractor) <chas@cmf.nrl.navy.mil> wrote:

> this patch delay's creation of /proc/net/atm/arp until
> after the kmem_cache_create.  mea culpa in advance for
> the shoddy #ifdef.
> 
> please apply to 2.6

We can clean up the ifdefs later.

Patch applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-12  6:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-11 14:32 [PATCH][ATM]: [clip] delay /proc/net/atm/arp creation chas williams
2004-02-12  6:06 ` 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).