summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
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 14dbf74..e7b2b7e 100644
--- a/sys/dev/ic/ahci.c
+++ b/sys/dev/ic/ahci.c
@@ -314,7 +314,7 @@ ahci_identify(struct ahci_hba *hba, struct hba_port *port)
buf_phys = vm_alloc_pageframe(1);
buf = PHYS_TO_VIRT(buf_phys);
- if (buf == 0) {
+ if (buf_phys == 0) {
status = -ENOMEM;
goto done;
}