summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2019-08-30 03:45:02 +0000
committerRobert Mustacchi <rm@joyent.com>2019-08-30 14:16:17 +0000
commit91f07cdccd8156b58bf33379e29bda6f39df4ba1 (patch)
treec5533d5d26656fcdffe49b3ff7c2da5f3c48631c
parent5b267fb2635fab1756a3f0ef8847387291497701 (diff)
downloadillumos-joyent-91f07cdccd8156b58bf33379e29bda6f39df4ba1.tar.gz
OS-7976 debug build needs some NULL pointer fixes
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Approved by: John Levon <john.levon@joyent.com>
-rw-r--r--usr/src/uts/common/brand/lx/syscall/lx_aio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/brand/lx/syscall/lx_aio.c b/usr/src/uts/common/brand/lx/syscall/lx_aio.c
index 1b673066e6..6748245db8 100644
--- a/usr/src/uts/common/brand/lx/syscall/lx_aio.c
+++ b/usr/src/uts/common/brand/lx/syscall/lx_aio.c
@@ -248,7 +248,7 @@ lx_io_cp_hold(lx_aio_context_t cid)
if (lxpd->l_io_ctxs == NULL) {
ASSERT(lxpd->l_io_ctx_cnt == 0);
- ASSERT(lxpd->l_io_ctxpage == NULL);
+ ASSERT(lxpd->l_io_ctxpage == (uintptr_t)NULL);
goto bad;
}
@@ -622,7 +622,7 @@ lx_io_setup(uint_t nr_events, void *ctxp)
uintptr_t ctxpage;
ASSERT(lxpd->l_io_ctx_cnt == 0);
- ASSERT(lxpd->l_io_ctxpage == NULL);
+ ASSERT(lxpd->l_io_ctxpage == (uintptr_t)NULL);
ttolwp(curthread)->lwp_errno = 0;
ctxpage = (uintptr_t)smmap64(0, PAGESIZE, PROT_READ,