summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/hook.c
diff options
context:
space:
mode:
authorPatrick Mooney <pmooney@pfmooney.com>2018-01-03 21:11:35 +0000
committerPatrick Mooney <pmooney@pfmooney.com>2020-05-19 15:55:57 +0000
commitb22a70abf81f995ecc990b8444e63308bc389d5c (patch)
tree5142f78f319737bcd44477e4e3cf578ccd0617e4 /usr/src/uts/common/io/hook.c
parentd77e6e0f12d19668c0e9068c0fcd7a2123da5373 (diff)
downloadillumos-joyent-b22a70abf81f995ecc990b8444e63308bc389d5c.tar.gz
12679 want viona driver for bhyve
Portions contributed by: Ryan Zezeski <rpz@joyent.com> Portions contributed by: John Levon <john.levon@joyent.com> Portions contributed by: Jason King <jason.king@joyent.com> Portions contributed by: Robert Mustacchi <rm@joyent.com> Portions contributed by: Bryan Cantrill <bryan@joyent.com> Reviewed by: Ryan Zezeski <ryan@zinascii.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/common/io/hook.c')
-rw-r--r--usr/src/uts/common/io/hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/hook.c b/usr/src/uts/common/io/hook.c
index eb139a37e2..44af26e7c4 100644
--- a/usr/src/uts/common/io/hook.c
+++ b/usr/src/uts/common/io/hook.c
@@ -1050,7 +1050,7 @@ hook_family_free(hook_family_int_t *hfi, hook_stack_t *hks)
/* Free container */
kmem_free(hfi, sizeof (*hfi));
- if (hks->hks_shutdown == 2)
+ if (hks != NULL && hks->hks_shutdown == 2)
hook_stack_remove(hks);
mutex_exit(&hook_stack_lock);