feat: twifs - pseudo file system for lunaix kernel state exposure
[lunaix-os.git] / lunaix-os / kernel / proc0.c
index be7d46885530f7b2afd4f5bdaf55b06d4b2b3210..36d872710a2af622e113c97d053485492790188c 100644 (file)
@@ -119,7 +119,7 @@ void
 __test_disk_io()
 {
     struct hba_port* port = ahci_get_port(0);
-    char* buffer = vcalloc_dma(port->device->block_size);
+    char* buffer = vzalloc_dma(port->device->block_size);
     strcpy(buffer, test_sequence);
     kprintf("WRITE: %s\n", buffer);
     int result;
@@ -142,6 +142,8 @@ __test_disk_io()
     } else {
         kprint_hex(buffer, 256);
     }
+
+    vfree_dma(buffer);
 }
 
 void