From 776eb96f94b73b997414a501a97c83ac35469fa4 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Fri, 18 Jan 2019 14:21:38 +0200 Subject: 10574 iwscn: NULL pointer errors Reviewed by: Sebastian Wiedenroth Reviewed by: Gergő Doma Approved by: Dan McDonald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/uts/common/io/iwscons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/src/uts/common/io/iwscons.c b/usr/src/uts/common/io/iwscons.c index 615cd61cd2..aeb6660a2a 100644 --- a/usr/src/uts/common/io/iwscons.c +++ b/usr/src/uts/common/io/iwscons.c @@ -607,7 +607,7 @@ iwscnattach(dev_info_t *devi, ddi_attach_cmd_t cmd) ASSERT(iwscn_dip == NULL); if (ddi_create_minor_node(devi, "iwscn", S_IFCHR, - 0, DDI_PSEUDO, NULL) == DDI_FAILURE) { + 0, DDI_PSEUDO, 0) == DDI_FAILURE) { return (DDI_FAILURE); } @@ -655,7 +655,7 @@ struct cb_ops iwscn_cb_ops = { iwscnioctl, /* ioctl */ nodev, /* devmap */ nodev, /* mmap */ - nodev, /* segmap */ + nodev, /* segmap */ iwscnpoll, /* poll */ ddi_prop_op, /* cb_prop_op */ NULL, /* streamtab */ -- cgit v1.2.3