Re: linux-next: Tree for July 17: early crash on x86-64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Al Viro
Date: Friday, July 18, 2008 - 8:52 pm

On Fri, Jul 18, 2008 at 05:52:23PM +0400, Alexander Beregalov wrote:

vfs-next/net-next conflict; apply the patch below on top of the merge.

diff --git a/net/sysctl_net.c b/net/sysctl_net.c
index b91a5de..2240a9e 100644
--- a/net/sysctl_net.c
+++ b/net/sysctl_net.c
@@ -44,13 +44,6 @@ static struct ctl_table_root net_sysctl_root = {
 	.lookup = net_ctl_header_lookup,
 };
 
-static LIST_HEAD(net_sysctl_ro_tables);
-static struct list_head *net_ctl_ro_header_lookup(struct ctl_table_root *root,
-		struct nsproxy *namespaces)
-{
-	return &net_sysctl_ro_tables;
-}
-
 static int net_ctl_ro_header_perms(struct ctl_table_root *root,
 		struct nsproxy *namespaces, struct ctl_table *table)
 {
@@ -61,7 +54,6 @@ static int net_ctl_ro_header_perms(struct ctl_table_root *root,
 }
 
 static struct ctl_table_root net_sysctl_ro_root = {
-	.lookup = net_ctl_ro_header_lookup,
 	.permissions = net_ctl_ro_header_perms,
 };
 
@@ -89,6 +81,7 @@ static __init int sysctl_init(void)
 	if (ret)
 		goto out;
 	register_sysctl_root(&net_sysctl_root);
+	setup_sysctl_set(&net_sysctl_ro_root.default_set, NULL, NULL);
 	register_sysctl_root(&net_sysctl_ro_root);
 out:
 	return ret;
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for July 17, Stephen Rothwell, (Thu Jul 17, 8:28 am)
Re: linux-next: Tree for July 17 (sysctl/syscall), Randy Dunlap, (Thu Jul 17, 3:21 pm)
Re: linux-next: Tree for July 17 (net_namespace), Randy Dunlap, (Thu Jul 17, 3:34 pm)
Re: linux-next: Tree for July 17: early crash on x86-64, Rafael J. Wysocki, (Thu Jul 17, 4:06 pm)
Re: linux-next: Tree for July 17: early crash on x86-64, Alexander Beregalov, (Fri Jul 18, 6:52 am)
Re: linux-next: Tree for July 17: early crash on x86-64, Al Viro, (Fri Jul 18, 8:52 pm)
Re: linux-next: Tree for July 17: early crash on x86-64, Rafael J. Wysocki, (Sat Jul 19, 11:42 am)
Re: linux-next: Tree for July 17: early crash on x86-64, James Morris, (Sat Jul 19, 12:54 pm)