From 0f48f68d9e0ad95b0edf718f68736cf3635a1f79 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sun, 20 Jan 2019 13:26:57 +0200 Subject: 10758 c2audit: NULL pointer errors Reviewed by: Andy Stormont Reviewed by: Robert Mustacchi Approved by: Dan McDonald --- usr/src/uts/common/c2/audit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr/src/uts/common/c2/audit.c') diff --git a/usr/src/uts/common/c2/audit.c b/usr/src/uts/common/c2/audit.c index 9084cd6d19..0553cca7b2 100644 --- a/usr/src/uts/common/c2/audit.c +++ b/usr/src/uts/common/c2/audit.c @@ -411,7 +411,7 @@ audit_symlink(struct pathname *pnp, struct pathname *sympath) * the specified file/directory attr) should be audited or * ignored. * - * returns: 1 - if audit policy and object attributes indicate that + * returns: 1 - if audit policy and object attributes indicate that * file/directory is effectively public. read events for * the file should not be audited. * 0 - otherwise @@ -526,7 +526,7 @@ audit_exit(int code, int what) /* * ROUTINE: AUDIT_CORE_START * PURPOSE: - * CALLBY: PSIG + * CALLBY: PSIG * NOTE: * TODO: */ @@ -928,7 +928,7 @@ audit_ipcget(int type, void *vp) return; switch (type) { - case NULL: + case 0: au_uwrite(au_to_ipc_perm((struct kipc_perm *)vp)); break; case AT_IPC_MSG: @@ -1298,7 +1298,7 @@ audit_enterprom(int flg) else au_write((caddr_t *)&(rp), au_to_return32(ECANCELED, 0)); - AUDIT_ASYNC_FINISH(rp, AUE_ENTERPROM, NULL, NULL); + AUDIT_ASYNC_FINISH(rp, AUE_ENTERPROM, 0, NULL); } @@ -1331,7 +1331,7 @@ audit_exitprom(int flg) else au_write((caddr_t *)&(rp), au_to_return32(ECANCELED, 0)); - AUDIT_ASYNC_FINISH(rp, AUE_EXITPROM, NULL, NULL); + AUDIT_ASYNC_FINISH(rp, AUE_EXITPROM, 0, NULL); } struct fcntla { -- cgit v1.2.3