From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw02.freescale.net (de01egw02.freescale.net [192.88.165.103]) by ozlabs.org (Postfix) with ESMTP id F41D4DE0B8 for ; Thu, 8 Feb 2007 10:01:41 +1100 (EST) Date: Wed, 7 Feb 2007 17:01:31 -0600 From: Scott Wood To: paulus@samba.org Subject: [PATCH 10/19] bootwrapper: Use map_string() instead of lookup_string() in ft_prop(). Message-ID: <20070207230131.GJ3849@ld0162-tx32.am.freescale.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20070207230017.GA3758@ld0162-tx32.am.freescale.net> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , When adding a property, the property name should be added to the string table if it doesn't already exist. map_string() does that; lookup_string() will fail instead. Signed-off-by: Scott Wood --- arch/powerpc/boot/flatdevtree.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/boot/flatdevtree.c b/arch/powerpc/boot/flatdevtree.c index 0c8970e..605d248 100644 --- a/arch/powerpc/boot/flatdevtree.c +++ b/arch/powerpc/boot/flatdevtree.c @@ -433,7 +433,7 @@ int ft_prop(struct ft_cxt *cxt, const ch { int off, len; - off = lookup_string(cxt, name); + off = map_string(cxt, name); if (off == NO_STRING) return -1; -- 1.4.4