Changeset f6992df in mainline


Ignore:
Timestamp:
2012-08-18T11:57:55Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc6762f
Parents:
1ec394e
Message:

isa: Add additional buffer constraint check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/i8237.c

    r1ec394e rf6992df  
    338338        if ((channel > 0) && (channel < 4) && (pa >= (1 << 20)))
    339339                return EINVAL;
     340
     341        /* Buffers cannot cross 64K page boundaries */
     342        if ((pa & 0xffff0000) !=  ((pa + size) & 0xffff0000))
     343                return EINVAL;
    340344       
    341345        fibril_mutex_lock(&guard);
Note: See TracChangeset for help on using the changeset viewer.