Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5adeef52 authored by Scott Wood's avatar Scott Wood Committed by Paul Mackerras
Browse files

[POWERPC] bootwrapper: Use map_string() instead of lookup_string() in ft_prop().



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: default avatarScott Wood <scottwood@freescale.com>
Acked-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 9dd2c31a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -429,7 +429,7 @@ int ft_prop(struct ft_cxt *cxt, const char *name, const void *data,
{
	int off, len;

	off = lookup_string(cxt, name);
	off = map_string(cxt, name);
	if (off == NO_STRING)
		return -1;