Changes in uspace/drv/block/ata_bd/main.c [7de1988c:c0dea01] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ata_bd/main.c
r7de1988c rc0dea01 84 84 } 85 85 86 addr_range_t *cmd_rng = &hw_res.io_ranges.ranges[0]; 87 addr_range_t *ctl_rng = &hw_res.io_ranges.ranges[1]; 88 ata_res->cmd = RNGABS(*cmd_rng); 89 ata_res->ctl = RNGABS(*ctl_rng); 90 91 if (RNGSZ(*ctl_rng) < sizeof(ata_ctl_t)) { 86 ata_res->cmd = hw_res.io_ranges.ranges[0].address; 87 ata_res->ctl = hw_res.io_ranges.ranges[1].address; 88 89 if (hw_res.io_ranges.ranges[0].size < sizeof(ata_ctl_t)) { 92 90 rc = EINVAL; 93 91 goto error; 94 92 } 95 93 96 if ( RNGSZ(*cmd_rng)< sizeof(ata_cmd_t)) {94 if (hw_res.io_ranges.ranges[1].size < sizeof(ata_cmd_t)) { 97 95 rc = EINVAL; 98 96 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.