#769 closed defect (fixed)

Minor boundary bug in rtems_io_register_driver

Reported by: dufault Owned by: Chris Johns
Priority: lowest Milestone: 4.9
Component: score Version: 4.6
Severity: normal Keywords:
Cc: bugs@…, joel.sherrill@…, sebastian.huber@… Blocked By:
Blocking:

Description

Is the check where it returns RTEMS_TOO_MANY a boundary error in rtems_io_register_driver (cpukit/sapi/src/io.c), or is there something behind the scenes that means the code is correct but it needs a comment?

You've counted down to zero, and it appears the slot at zero is empty so you could use it, but the code returns RTEMS_TOO_MANY. I think you want to use that slot in that case.

Release:
4.6.99

Environment:
All

Change History (6)

comment:1 Changed on Mar 17, 2005 at 1:38:20 PM by Joel Sherrill

Status: assignedwaiting

comment:2 Changed on Aug 5, 2008 at 3:05:56 PM by Joel Sherrill

Milestone: 4.9
Owner: changed from Joel Sherrill to Chris Johns
rep_platform: All
Status: assignednew

comment:3 Changed on Oct 7, 2009 at 11:18:33 AM by Sebastian Huber

Cc: Sebastian Huber added

comment:4 Changed on Oct 7, 2009 at 12:03:44 PM by Joel Sherrill

Cc: Joel Sherrill added

comment:5 Changed on May 15, 2010 at 7:03:23 AM by Chris Johns

Resolution: fixed
Status: newclosed

comment:6 Changed on May 15, 2010 at 7:03:40 AM by Chris Johns

Close.

Note: See TracTickets for help on using tickets.