This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001474] New: io/serial/common/serial.c: overrun conditionreturns uninitialized .stat item


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001474

           Summary: io/serial/common/serial.c: overrun condition returns
                    uninitialized .stat item
           Product: eCos
           Version: CVS
          Platform: All
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: minor
          Priority: low
         Component: Serial
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: bernard.fouche@kuantic.com
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


Created an attachment (id=1550)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1550)
set cyg_serial_line_status_t.stat to zero when overrun detected

If an overrun is detected, serial_indicate_status() is called with a pointer to
a cyg_serial_line_status_t structure, the 'which' item of this structure is set
to 'CYGNUM_SERIAL_STATUS_OVERRUNERR', but the 'stat' item is left
uninitialized. The proposed patch forces the 'stat' item to zero since the
generic serial driver sets 'stat' to 1 for overrun: using different values
helps distinguish the origin of the overrun problem.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]