Changeset aa9389f in rtems for cpukit/dtc


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

libfdt: fix fdt_stringlist_count()

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

    rc753d9d raa9389f  
    572572        list = fdt_getprop(fdt, nodeoffset, property, &length);
    573573        if (!list)
    574                 return -length;
     574                return length;
    575575
    576576        end = list + length;
Note: See TracChangeset for help on using the changeset viewer.