From 7e12ceb3ebc63aeb71e91b496032ca22ca55f660 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Fri, 18 Jan 2019 10:38:01 +0200 Subject: 10376 uts: NULL pointer issues in genunix Reviewed by: Andy Fiddaman Reviewed by: Andy Stormont Reviewed by: John Levon Approved by: Robert Mustacchi --- usr/src/uts/common/syscall/lgrpsys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/uts/common/syscall/lgrpsys.c') diff --git a/usr/src/uts/common/syscall/lgrpsys.c b/usr/src/uts/common/syscall/lgrpsys.c index be60d1a445..34bd08fd12 100644 --- a/usr/src/uts/common/syscall/lgrpsys.c +++ b/usr/src/uts/common/syscall/lgrpsys.c @@ -182,7 +182,7 @@ meminfo(int addr_count, struct meminfo *mip) out_array[i] = lgrp->lgrp_id; val_array[i] = VALID_ADDR | VALID_REQ; } else { - out_array[i] = NULL; + out_array[i] = 0; val_array[i] = 0; } } @@ -1857,7 +1857,7 @@ lgrp_snapshot_copy32(caddr32_t buf, size32_t bufsize) snap_size = snap_hdr_size + info_size + cpuids_size + bitmasks_size + lats_size; - if (buf == NULL || bufsize <= 0) { + if (buf == 0 || bufsize <= 0) { return (snap_size); } -- cgit v1.2.3