[RTEMS Project] #4237: consolesimpletask.c: Unchecked Return Value (CID #1437625) (was: Fix CID #1437625)

RTEMS trac trac at rtems.org
Fri Feb 12 20:16:29 UTC 2021


#4237: consolesimpletask.c: Unchecked Return Value (CID #1437625)
-----------------------+---------------------
 Reporter:  Ryan Long  |       Owner:  (none)
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:  6.1
Component:  lib        |     Version:  6
 Severity:  normal     |  Resolution:
 Keywords:             |  Blocked By:
 Blocking:             |
-----------------------+---------------------
Description changed by Joel Sherrill:

Old description:

> CID 1437625 (#1 of 1): Unchecked return value (CHECKED_RETURN)1.
> check_return: Calling rtems_task_create without checking return value (as
> is done elsewhere 22 out of 25 times).

New description:

 CID 1437625 (#1 of 1): Unchecked return value from call to
 rtems_task_create().

 Snippet from Coverity output.

 {{{
 234  IMFS_add_node( "/dev", &cons->Node, NULL );
 235

 CID 1437625 (#1 of 1): Unchecked return value (CHECKED_RETURN)
 1. check_return: Calling rtems_task_create without checking return value
 (as is done elsewhere 22 out of 25 times).
 236  rtems_task_create(
 237    rtems_build_name('C', 'O', 'N', 'S'),
 238    RTEMS_MAXIMUM_PRIORITY - 1,
 239    RTEMS_MINIMUM_STACK_SIZE,
 240    RTEMS_DEFAULT_ATTRIBUTES,
 241    RTEMS_DEFAULT_MODES,
 242    &cons->task
 243  );
 244
 }}}

--

--
Ticket URL: <http://devel.rtems.org/ticket/4237#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list