diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-11-27 01:30:32 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-11-27 01:30:32 +0100 |
commit | 1fa22025ed71bb38dfb674e04fe1f0c6372b6a79 (patch) | |
tree | 0c571a5aeaaa9b59093897c7301edb596103cfe9 | |
parent | 7596a94fab65860ff8044508a947f0744b300772 (diff) |
Fix ahci unit MAX_PORTS check
* linux/dev/drivers/block/ahci.c (ahci_do_request): Fix checking unit
against MAX_PORTS.
-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; } |