summaryrefslogtreecommitdiffstats
path: root/fs-proc-devtree-remove_proc_entry.patch
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2012-05-07 12:03:03 -0400
committerDave Jones <davej@redhat.com>2012-05-07 12:03:03 -0400
commit6a501c420a6ae277fef9937926f0fae29d760914 (patch)
treef941b406fda8bc4ec8eb3b08c1b7a7bb88c98208 /fs-proc-devtree-remove_proc_entry.patch
parent55ad8544e843046cd264c1932fbdd4c49c321bd0 (diff)
downloadkernel-6a501c420a6ae277fef9937926f0fae29d760914.tar.gz
kernel-6a501c420a6ae277fef9937926f0fae29d760914.tar.xz
kernel-6a501c420a6ae277fef9937926f0fae29d760914.zip
Remove /proc/device-tree when openfirmware init fails. (rhbz 818378)
Diffstat (limited to 'fs-proc-devtree-remove_proc_entry.patch')
-rw-r--r--fs-proc-devtree-remove_proc_entry.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs-proc-devtree-remove_proc_entry.patch b/fs-proc-devtree-remove_proc_entry.patch
new file mode 100644
index 00000000..c32e79e6
--- /dev/null
+++ b/fs-proc-devtree-remove_proc_entry.patch
@@ -0,0 +1,12 @@
+diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c
+index 927cbd1..f060f28 100644
+--- a/fs/proc/proc_devtree.c
++++ b/fs/proc/proc_devtree.c
+@@ -233,6 +233,7 @@ void __init proc_device_tree_init(void)
+ return;
+ root = of_find_node_by_path("/");
+ if (root == NULL) {
++ remove_proc_entry("device-tree", NULL);
+ pr_debug("/proc/device-tree: can't find root\n");
+ return;
+ }