diff options
author | Dave Jones <davej@redhat.com> | 2014-01-23 23:55:43 (GMT) |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-03-31 12:22:31 (GMT) |
commit | 6d05cdce4fb86af309b91cc1e055e995f79c9a72 (patch) | |
tree | a38fa1e14b78029a62385c09954c3b93002a6b31 /drivers/input | |
parent | 20a9e39efdd640c57aa348d53a149ff0692e842a (diff) | |
download | linux-fsl-qoriq-6d05cdce4fb86af309b91cc1e055e995f79c9a72.tar.xz |
fs/proc/proc_devtree.c: remove empty /proc/device-tree when no openfirmware exists.
commit c1d867a54d426b45da017fbe8e585f8a3064ce8d upstream.
Distribution kernels might want to build in support for /proc/device-tree
for kernels that might end up running on hardware that doesn't support
openfirmware. This results in an empty /proc/device-tree existing.
Remove it if the OFW root node doesn't exist.
This situation actually confuses grub2, resulting in install failures.
grub2 sees the /proc/device-tree and picks the wrong install target cf.
http://bzr.savannah.gnu.org/lh/grub/trunk/grub/annotate/4300/util/grub-install.in#L311
grub should be more robust, but still, leaving an empty proc dir seems
pointless.
Addresses https://bugzilla.redhat.com/show_bug.cgi?id=818378.
Signed-off-by: Dave Jones <davej@redhat.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Josh Boyer <jwboyer@fedoraproject.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions