mirror of
https://github.com/adulau/aha.git
synced 2025-01-02 14:13:18 +00:00
[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: Scott Wood <scottwood@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
9dd2c31ab8
commit
5adeef52cc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue