[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.01.1006130045230.3964@bogon.housecafe.de>
Date: Sun, 13 Jun 2010 00:47:20 -0700 (PDT)
From: Christian Kujau <lists@...dbynature.de>
To: Michael Ellerman <michael@...erman.id.au>
cc: linuxppc-dev@...abs.org, monstr@...str.eu,
microblaze-uclinux@...e.uq.edu.au,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] device-tree: Drop properties with "/" in their name
On Wed, 19 May 2010 at 22:32, Michael Ellerman wrote:
> Some bogus firmwares include properties with "/" in their name. This
> causes problems when creating the /proc/device-tree file system,
> because the slash is taken to indicate a directory.
>
> We don't care about those properties, and we don't want to encourage
> them, so just throw them away when creating /proc/device-tree.
>
> Signed-off-by: Michael Ellerman <michael@...erman.id.au>
> ---
>
> Hi Christian, if you could test this new patch that'd be great, thanks!
I've tested the patch, the Badness is gone and the system is stable as
ever. Will this be pushed to 2.6.35?
Thanks,
Christian.
> fs/proc/proc_devtree.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c
> index ce94801..d9396a4 100644
> --- a/fs/proc/proc_devtree.c
> +++ b/fs/proc/proc_devtree.c
> @@ -209,6 +209,9 @@ void proc_device_tree_add_node(struct device_node *np,
> for (pp = np->properties; pp != NULL; pp = pp->next) {
> p = pp->name;
>
> + if (strchr(p, '/'))
> + continue;
> +
> if (duplicate_name(de, p))
> p = fixup_name(np, de, p);
>
> --
> 1.7.0.4
>
>
>
--
BOFH excuse #334:
50% of the manual is in .pdf readme files
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists