summaryrefslogtreecommitdiff
path: root/usr/src/uts/intel
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-18 22:37:24 +0200
committerDan McDonald <danmcd@joyent.com>2019-01-21 11:39:50 -0500
commit8704b322140c9a4ebb9f5cef7c062773b3a8ead4 (patch)
tree43d7fb4accf5b52cf2e31f56ec6b4bf009fe8f15 /usr/src/uts/intel
parent874045b4f1bf22674537beed761f1586fd6dd52b (diff)
downloadillumos-joyent-8704b322140c9a4ebb9f5cef7c062773b3a8ead4.tar.gz
10264 vgatext: NULL pointer errors
Reviewed by: Sebastian Wiedenroth <wiedi@frubar.net> Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/intel')
-rw-r--r--usr/src/uts/intel/io/vgatext/vgatext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/intel/io/vgatext/vgatext.c b/usr/src/uts/intel/io/vgatext/vgatext.c
index 35ee13a1b6..b18a370717 100644
--- a/usr/src/uts/intel/io/vgatext/vgatext.c
+++ b/usr/src/uts/intel/io/vgatext/vgatext.c
@@ -26,7 +26,7 @@
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
-/* All Rights Reserved */
+/* All Rights Reserved */
#include <sys/errno.h>
#include <sys/types.h>
@@ -81,7 +81,7 @@ static int vgatext_ioctl(dev_t, int, intptr_t, int, cred_t *, int *);
static int vgatext_devmap(dev_t, devmap_cookie_t, offset_t, size_t,
size_t *, uint_t);
-static struct cb_ops cb_vgatext_ops = {
+static struct cb_ops cb_vgatext_ops = {
vgatext_open, /* cb_open */
vgatext_close, /* cb_close */
nodev, /* cb_strategy */
@@ -235,7 +235,7 @@ vgatext_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
(void) snprintf(name, sizeof (name), "text-%d", unit);
error = ddi_create_minor_node(devi, name, S_IFCHR,
- INST2NODE1(unit), DDI_NT_DISPLAY, NULL);
+ INST2NODE1(unit), DDI_NT_DISPLAY, 0);
if (error == DDI_SUCCESS)
return (DDI_SUCCESS);