From d7dc8e3777b6846ae55575b6453e7202570a2acc Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 31 May 2024 11:45:12 -0400 Subject: kernel: ahci: Fix null check Signed-off-by: Ian Moffett --- sys/dev/ic/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') 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; } -- cgit v1.2.3