[RTEMS Project] #4258: printertask.c: Unchecked return value errors spotted by Coverity (was: printertask.c: Unchecked return value spotted by Coverity)

RTEMS trac trac at rtems.org
Fri Feb 19 21:47:12 UTC 2021


#4258: printertask.c: Unchecked return value errors spotted by Coverity
-----------------------+---------------------
 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:             |
-----------------------+---------------------

Comment (by Ryan Long):

 CID 1472764: Unchecked return value in rtems_print_printer_task().

 {{{
 183  ctx->buffer_size -= sizeof( printer_task_buffer );
 184
 185  printer->context = ctx;
 186  printer->printer = printer_task_printer;
 187
    CID 1472764 (#1 of 1): Unchecked return value (CHECKED_RETURN)3.
 check_return: Calling rtems_task_start without checking return value (as
 is done elsewhere 22 out of 25 times).
 188  rtems_task_start( ctx->task, printer_task, (rtems_task_argument) ctx
 );
 }}}

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


More information about the bugs mailing list