[RTEMS Project] #4403: rtems_timer_fire_when() returns wrong status code when wall_time argument is NULL

RTEMS trac trac at rtems.org
Wed May 12 04:41:27 UTC 2021


#4403: rtems_timer_fire_when() returns wrong status code when wall_time argument
is NULL
-------------------------------------------------+-------------------------
 Reporter:  Frank Kuehndel                       |       Owner:  Sebastian
                                                 |  Huber
     Type:  defect                               |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  rtems                                |     Version:  6
 Severity:  trivial                              |  Resolution:  fixed
 Keywords:  rtems_timer_fire_when,               |  Blocked By:
  RTEMS_INVALID_CLOCK, wall_time                 |
 Blocking:                                       |
-------------------------------------------------+-------------------------
Changes (by Frank Kühndel <frank.kuehndel@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"3af2dc7802164d6c22dbef1f144c9bd945a35c30/rtems"
 3af2dc7/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="3af2dc7802164d6c22dbef1f144c9bd945a35c30"
 _TOD_Validate(): Fix incorrect return code

 This patch fixes bug #4403. Directives

 * rtems_timer_fire_when()
 * rtems_timer_server_fire_when()
 * rtems_task_wake_when()

 are documented to return RTEMS_INVALID_ADDRESS when their time-of-day
 argument is NULL. But actually they return RTEMS_INVALID_CLOCK. To fix
 the issue this patch changes _TOD_Validate() to return a
 status code instead of just true/false.

 Close #4403
 }}}

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


More information about the bugs mailing list