diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-06-19 12:18:51 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-06-19 12:18:51 +0000 |
commit | 6040a68c1ef27209fe7cd5dfd799ddfa5f11a701 (patch) | |
tree | 5ac8fef7a57586e8ebcbfe6013e47a96f9f26ce2 /usr/src/lib/libhotplug/common/libhotplug.c | |
parent | 4227bcffd4e1abf8a3987dbe0f649d7cc7ea4940 (diff) | |
parent | ae7ff7d6ac239648a2579a0de5a0a1be3d4e10e6 (diff) | |
download | illumos-joyent-6040a68c1ef27209fe7cd5dfd799ddfa5f11a701.tar.gz |
[illumos-gate merge]
commit ae7ff7d6ac239648a2579a0de5a0a1be3d4e10e6
11118 libhotplug: NULL pointer errors
commit dd6458550ab2996163712b25c080615392bf94d2
11117 libzfs_core: NULL pointer errors
commit 281eb3a97ad0e298603325ba7c56d0222aaa5ac3
11114 libsecdb: NULL pointer errors
commit d5fa36a7366530f78b3c5d1cd4c4a40085383b9f
11110 crle: NULL pointer errors
commit e2294b844b9f4bfc375e88fd1260d9a39ffc82e1
11103 link_audit: NULL pointer errors
commit 430c2cddc92582fc7155aaf65c78f0919d7081c1
6474 getupeercred causes spurious event port wakeups on FIFOs
commit 5f5c35baa7f18214d2cd9ec105270892288f8497
11100 liblddbg: NULL pointer errors
commit 344db6f401efe76f7e1d4f4c1a644ae593910219
11092 libnsl: NULL pointer errors
commit e86c3f00315e5838c0ec0b14f34b94c292085956
11091 libc: NULL pointer errors
commit ad24f9fb30ac1431734347d46a592d22cbfcf3b6
11081 liblddbg: comparison between pointer and integer
commit 0362cabb4921eb6283a19fb680876f50907fda08
11115 libdisasm: NULL pointer errors
commit 9a34674dce796d46567833216389d6d430925bb2
11182 loader: Distinguish between "no partition" and "choose best partition" with a constant.
commit a8412dc108558a7a3635b7ab4f3b1b743bdff9e8
11074 loader: mod_loadkld() error: we previously assumed 'last_file' could be null
commit 535ff4fc926c4df67c4665a72c71724810962d4f
11047 zmod: make sure we use zmemcpy and friends
commit e207f0de2012ff5024160daa7e6e3cf11d04f2dc
11111 lex: NULL pointer errors
Diffstat (limited to 'usr/src/lib/libhotplug/common/libhotplug.c')
-rw-r--r-- | usr/src/lib/libhotplug/common/libhotplug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/lib/libhotplug/common/libhotplug.c b/usr/src/lib/libhotplug/common/libhotplug.c index 91609f457a..d343bebb2c 100644 --- a/usr/src/lib/libhotplug/common/libhotplug.c +++ b/usr/src/lib/libhotplug/common/libhotplug.c @@ -345,14 +345,14 @@ hp_last_change(hp_node_t node) if (node == NULL) { i_hp_dprintf("hp_last_change: invalid arguments.\n"); errno = EINVAL; - return (NULL); + return (0); } if ((node->hp_type != HP_NODE_CONNECTOR) && (node->hp_type != HP_NODE_PORT)) { i_hp_dprintf("hp_last_change: operation not supported.\n"); errno = ENOTSUP; - return (NULL); + return (0); } return (node->hp_last_change); @@ -794,7 +794,7 @@ hp_unpack(char *packed_buf, size_t packed_len, hp_node_t *retp) if (nvlist_next_nvpair(nvl, NULL) == NULL) { nvlist_free(nvl); errno = EINVAL; - return (NULL); + return (0); } for (nvp = NULL; nvp = nvlist_next_nvpair(nvl, nvp); ) { |