[RTEMS Project] #4256: fdt_rw.c: Unchecked return value error spotted by Coverity

RTEMS trac trac at rtems.org
Fri Feb 19 20:37:30 UTC 2021


#4256: fdt_rw.c: Unchecked return value error spotted by Coverity
------------------------+--------------------
  Reporter:  Ryan Long  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  6.1
 Component:  lib        |    Version:  6
  Severity:  normal     |   Keywords:
Blocked By:             |   Blocking:
------------------------+--------------------
 CID 1047324: Unchecked return value in fdt_add_subnode_namelen().

 {{{
 350        /* Try to place the new node after the parent's properties */
    CID 1047324 (#1 of 1): Unchecked return value (CHECKED_RETURN)4.
 check_return: Calling fdt_next_tag without checking return value (as is
 done elsewhere 7 out of 8 times).
 351        fdt_next_tag(fdt, parentoffset, &nextoffset); /* skip the
 BEGIN_NODE */
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4256>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list