summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-18 14:21:38 +0200
committerToomas Soome <tsoome@me.com>2019-03-22 20:16:51 +0200
commit776eb96f94b73b997414a501a97c83ac35469fa4 (patch)
tree0376dc580d5c5bb725ad0c5b9a0f6fa02b246424
parent3bb8546d907194e91bea367d863eb10ce3fe6621 (diff)
downloadillumos-joyent-776eb96f94b73b997414a501a97c83ac35469fa4.tar.gz
10574 iwscn: NULL pointer errors
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/io/iwscons.c4
1 files 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 */