summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-26 01:46:25 -0400
committerIan Moffett <ian@osmora.org>2025-05-26 01:46:25 -0400
commit92d69b5538cc0828fc33e88fccb49ec62717133d (patch)
tree1714cbb8d0392994df5d6834447f2e27e59bdd90 /sys/dev/ic
parentaaa54eee1859688a402ba03d2d7dd791608ffc40 (diff)
kernel: ahci: Fix operator in dev_max check
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c
index ac92b99..53113e7 100644
--- a/sys/dev/ic/ahci.c
+++ b/sys/dev/ic/ahci.c
@@ -634,7 +634,7 @@ sata_dev_rw(dev_t dev, struct sio_txn *sio, bool write)
if (sio->len == 0 || sio->buf == NULL) {
return -EINVAL;
}
- if (dev >= devs_max) {
+ if (dev > devs_max) {
return -ENODEV;
}