diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2009-11-26 14:50:01 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2009-11-26 14:50:01 +0000 |
| commit | 052c5232f5f1b4a85dfaa0b38aea7cb741a8ee09 (patch) | |
| tree | 9c3c7ffb6236fd95a9cb8e7fb69eab3c6db6e5ac /sys/dev | |
| parent | 70f426fe84a3eaf3825d03ac9c2eb75235127839 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ata/ata-disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 22be3543c7de..03b10650b822 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -397,7 +397,7 @@ ad_init(device_t dev) /* use multiple sectors/interrupt if device supports it */ if (ad_version(atadev->param.version_major)) { - int secsperint = max(1, min(atadev->param.sectors_intr, 16)); + int secsperint = max(1, min(atadev->param.sectors_intr & 0xff, 16)); if (!ata_controlcmd(dev, ATA_SET_MULTI, 0, 0, secsperint)) atadev->max_iosize = secsperint * DEV_BSIZE; |
