diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-26 01:46:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-26 01:46:25 -0400 |
commit | 92d69b5538cc0828fc33e88fccb49ec62717133d (patch) | |
tree | 1714cbb8d0392994df5d6834447f2e27e59bdd90 /sys/dev/ic | |
parent | aaa54eee1859688a402ba03d2d7dd791608ffc40 (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.c | 2 |
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; } |