summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/dev/drivers/block/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/dev/drivers/block/ahci.c b/linux/dev/drivers/block/ahci.c
index d9e7b300..c2439824 100644
--- a/linux/dev/drivers/block/ahci.c
+++ b/linux/dev/drivers/block/ahci.c
@@ -381,7 +381,7 @@ static void ahci_do_request() /* invoked with cli() */
minor = MINOR(rq->rq_dev);
unit = minor >> PARTN_BITS;
- if (unit > MAX_PORTS) {
+ if (unit >= MAX_PORTS) {
printk("bad ahci unit %u\n", unit);
goto kill_rq;
}