diff options
Diffstat (limited to 'usr/src/uts/i86pc/os/fastboot.c')
-rw-r--r-- | usr/src/uts/i86pc/os/fastboot.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/uts/i86pc/os/fastboot.c b/usr/src/uts/i86pc/os/fastboot.c index 1520a6653c..9dbcd456df 100644 --- a/usr/src/uts/i86pc/os/fastboot.c +++ b/usr/src/uts/i86pc/os/fastboot.c @@ -497,7 +497,7 @@ fastboot_build_mbi(char *mdep, fastboot_info_t *nk) if (nk->fi_mbi_size == 0) { if ((nk->fi_new_mbi_va = (uintptr_t)contig_alloc(size, &fastboot_below_1G_dma_attr, - PAGESIZE, 0)) == NULL) { + PAGESIZE, 0)) == 0) { cmn_err(CE_NOTE, fastboot_enomem_msg, (uint64_t)size, "1G"); return (-1); @@ -705,7 +705,7 @@ fastboot_reserve_mem(fastboot_info_t *nk) */ if ((nk->fi_pagetable_va = (uintptr_t)contig_alloc(fastboot_pagetable_size, - &fastboot_below_1G_dma_attr, PAGESIZE, 0)) == NULL) { + &fastboot_below_1G_dma_attr, PAGESIZE, 0)) == 0) { return; } nk->fi_pagetable_size = fastboot_pagetable_size; @@ -714,7 +714,7 @@ fastboot_reserve_mem(fastboot_info_t *nk) * Reserve memory under PA 1G for multiboot structure. */ if ((nk->fi_new_mbi_va = (uintptr_t)contig_alloc(fastboot_mbi_size, - &fastboot_below_1G_dma_attr, PAGESIZE, 0)) == NULL) { + &fastboot_below_1G_dma_attr, PAGESIZE, 0)) == 0) { return; } nk->fi_mbi_size = fastboot_mbi_size; @@ -745,7 +745,7 @@ fastboot_free_file(fastboot_file_t *fb) fsize_roundup = P2ROUNDUP_TYPED(fb->fb_size, PAGESIZE, size_t); if (fsize_roundup) { contig_free((void *)fb->fb_va, fsize_roundup); - fb->fb_va = NULL; + fb->fb_va = 0; fb->fb_size = 0; } } @@ -1243,7 +1243,7 @@ load_kernel_retry: if (newkernel.fi_pagetable_size == 0) { if ((newkernel.fi_pagetable_va = (uintptr_t) contig_alloc(size, &fastboot_below_1G_dma_attr, - MMU_PAGESIZE, 0)) == NULL) { + MMU_PAGESIZE, 0)) == 0) { cmn_err(CE_NOTE, fastboot_enomem_msg, (uint64_t)size, "1G"); goto err_out; |