1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00
Files
u-boot-megous/cmd
Hannes Schmelzer cee8c35d1b fdt: fix 'prop (...) not found!' error in 'fdt set' command
This commit brings things back to the well known working state of the
command.
-
With commit 9620d87259
(cmd/fdt: support single value replacement within an array)

there was an error introduced modifying (inserting) a property to a
device-tree node.
fdt_getprop(...) returnes a len with -1 for a non-existing property, but
a memcpy with len -1 isn't a good idea and things went wrong (crash).
-
Some times later Tom did repair this
with commit 99bb38e2cc
(fdt: Check for NULL return from fdt_getprop in 'fdt set')

This repairs the crash but the behaviour of the command isn't like
before, it makes it impossible to insert a property.
-

Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Acked-by: Simon Glass <sjg@chromium.org>
2017-09-04 02:10:06 -06:00
..
2017-02-08 15:56:28 -05:00
2017-04-12 13:28:27 -04:00
2017-08-16 08:30:24 -04:00
2017-07-03 17:35:28 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2016-09-09 15:53:14 -04:00
2017-06-16 10:11:42 -04:00
2016-05-02 18:37:09 -04:00
2017-08-16 08:30:24 -04:00
2016-04-18 17:11:36 -04:00
2017-08-16 08:30:24 -04:00
2017-01-20 09:15:24 -05:00
2017-03-28 06:27:54 +02:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-23 10:41:58 +02:00
2017-02-08 15:56:28 -05:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-23 10:41:58 +02:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2016-10-06 20:57:42 -04:00
2017-08-16 08:22:18 -04:00
2017-08-11 15:41:51 -04:00
2017-06-12 08:37:55 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2016-03-27 09:12:55 -04:00
2017-08-23 10:41:58 +02:00
2017-08-16 08:30:24 -04:00