From 391003522adc721450b82df5bf97cf692b1a683d Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sun, 20 Jan 2019 13:46:00 +0200 Subject: 10763 hook: NULL pointer errors Reviewed by: Andy Stormont Reviewed by: Sebastian Wiedenroth Approved by: Dan McDonald --- usr/src/uts/common/io/hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src/uts/common/io/hook.c') diff --git a/usr/src/uts/common/io/hook.c b/usr/src/uts/common/io/hook.c index c3ebfa0e47..eb139a37e2 100644 --- a/usr/src/uts/common/io/hook.c +++ b/usr/src/uts/common/io/hook.c @@ -1883,7 +1883,7 @@ hook_register(hook_family_int_t *hfi, char *event, hook_t *h) ASSERT(h != NULL); if (hfi->hfi_stack->hks_shutdown) - return (NULL); + return (0); /* Alloc hook_int_t and copy hook */ new = hook_copy(h); -- cgit v1.2.3