diff options
author | mischief <mischief@offblast.org> | 2018-08-06 08:50:40 -0700 |
---|---|---|
committer | mischief <mischief@offblast.org> | 2018-08-06 08:50:40 -0700 |
commit | 796c41092aeb76bbbb151b56865b0355080d97c1 (patch) | |
tree | 75a80e0103346568b0af0b505d5acd4f4de0b956 | |
parent | 0c036b4d4a5ec309155f44e2620ddced2054b674 (diff) | |
download | plan9front-796c41092aeb76bbbb151b56865b0355080d97c1.tar.xz |
devaoe: fix unit numbering for Qdevlinkdir
a side effect of 3c77cd3ae664 changed the unit ordering to start at one, so fix the condition accordingly.
-rw-r--r-- | sys/src/9/port/devaoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/devaoe.c b/sys/src/9/port/devaoe.c index 0ef609bd1..ce8f51ec7 100644 --- a/sys/src/9/port/devaoe.c +++ b/sys/src/9/port/devaoe.c @@ -949,7 +949,7 @@ aoegen(Chan *c, char *, Dirtab *, int, int s, Dir *dp) return unitgen(c, TYPE(c->qid), dp); case Qdevlinkdir: i = UNIT(c->qid); - if(i >= Maxunits || i >= units.ref) + if(i > Maxunits || i > units.ref) return -1; d = unit2dev(i); if(s == DEVDOTDOT){ |