Changeset d8c856b in rtems for cpukit/dtc


Ignore:
Timestamp:
Oct 17, 2016, 6:08:24 AM (3 years ago)
Author:
Masahiro Yamada <yamada.masahiro@…>
Branches:
master
Children:
8cd96f47
Parents:
aa9389f
git-author:
Masahiro Yamada <yamada.masahiro@…> (10/17/16 06:08:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/19/18 05:01:10)
Message:

libfdt: fix fdt_stringlist_search()

If fdt_getprop() fails, negative error code should be returned.

Signed-off-by: Masahiro Yamada <yamada.masahiro@…>
Signed-off-by: David Gibson <david@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/dtc/libfdt/fdt_ro.c

    raa9389f rd8c856b  
    598598        list = fdt_getprop(fdt, nodeoffset, property, &length);
    599599        if (!list)
    600                 return -length;
     600                return length;
    601601
    602602        len = strlen(string) + 1;
Note: See TracChangeset for help on using the changeset viewer.