diff options
-rw-r--r-- | linux/dev/drivers/block/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/dev/drivers/block/ahci.c b/linux/dev/drivers/block/ahci.c index d9e7b30..c243982 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; } |