Restore the changes done in r313982: Replace zero with NULL for pointers.

Spotted by:	Harry Schmalzbauer
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC (Netgate)
This commit is contained in:
loos 2017-07-21 03:59:56 +00:00
parent 9489f69692
commit a5d4ca7b37
2 changed files with 2 additions and 2 deletions

View File

@ -671,7 +671,7 @@ nm_os_pt_memdev_iomap(struct ptnetmap_memdev *ptn_dev, vm_paddr_t *nm_paddr,
&rid, 0, ~0, *mem_size, RF_ACTIVE);
if (ptn_dev->pci_mem == NULL) {
*nm_paddr = 0;
*nm_addr = 0;
*nm_addr = NULL;
return ENOMEM;
}

View File

@ -2146,7 +2146,7 @@ netmap_mem_pt_guest_deref(struct netmap_mem_d *nmd)
if (ptnmd->ptn_dev) {
nm_os_pt_memdev_iounmap(ptnmd->ptn_dev);
}
ptnmd->nm_addr = 0;
ptnmd->nm_addr = NULL;
ptnmd->nm_paddr = 0;
}
}