Changeset 28ca043f in mainline


Ignore:
Timestamp:
2012-04-01T21:02:17Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d2963d
Parents:
4b44de57
Message:

RTC: raise an error if the I/O range assigned to the device is too small.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/time/cmos-rtc/cmos-rtc.c

    r4b44de57 r28ca043f  
    191191
    192192                if (res->type == IO_RANGE) {
     193                        if (res->res.io_range.size < REG_COUNT) {
     194                                ddf_msg(LVL_ERROR, "I/O range assigned to \
     195                                    device %s is too small", rtc->dev->name);
     196                                rc = ELIMIT;
     197                                goto error;
     198                        }
    193199                        rtc->io_addr = res->res.io_range.address;
    194200                        ioport = true;
Note: See TracChangeset for help on using the changeset viewer.