summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-26 01:48:34 -0400
committerIan Moffett <ian@osmora.org>2025-05-26 01:48:34 -0400
commitd2ae9910bd6d5d4d2bd79cd2c835d6ca1a64364c (patch)
tree3d4ac4f1e174ed6ff3f72ebd9291cf6bd792cf95 /sys/dev/ic
parent8ee8af7a61e929bedcd68617c3a5a1d2843936e8 (diff)
kernel: ahci: Do not fake success on empty port
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ahci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c
index 9a9f896..d88274a 100644
--- a/sys/dev/ic/ahci.c
+++ b/sys/dev/ic/ahci.c
@@ -363,9 +363,8 @@ hba_port_reset(struct ahci_hba *hba, struct hba_port *port)
det = AHCI_PXSCTL_DET(ssts);
ipm = AHCI_PXSSTS_IPM(ssts);
- /* If there is no device, fake success */
if (det == AHCI_DET_NULL) {
- return 0;
+ return -ENODEV;
}
if (det != AHCI_DET_COMM) {