summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-20 22:53:21 +0200
committerToomas Soome <tsoome@me.com>2019-04-22 08:15:57 +0300
commit73ef9f27279e31544655b04979f4f648d8575476 (patch)
tree0e8e4ae2a5e5e83c303d71298b26fdd03642301e
parentaabaa37a39655f3a4bc4cb0c5d7d9ad5927c3323 (diff)
downloadillumos-joyent-73ef9f27279e31544655b04979f4f648d8575476.tar.gz
10802 xenbus: NULL pointer errors
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/uts/common/xen/io/xenbus_dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/xen/io/xenbus_dev.c b/usr/src/uts/common/xen/io/xenbus_dev.c
index 56c1308e7a..294c7e58aa 100644
--- a/usr/src/uts/common/xen/io/xenbus_dev.c
+++ b/usr/src/uts/common/xen/io/xenbus_dev.c
@@ -92,7 +92,7 @@
/* Some handy macros */
#define XENBUSDRV_MASK_READ_IDX(idx) ((idx) & (PAGESIZE - 1))
#define XENBUSDRV_MINOR2INST(minor) ((int)(minor))
-#define XENBUSDRV_NCLONES 256
+#define XENBUSDRV_NCLONES 256
#define XENBUSDRV_INST2SOFTS(instance) \
((xenbus_dev_t *)ddi_get_soft_state(xenbusdrv_statep, (instance)))
@@ -147,7 +147,7 @@ static int xenbusdrv_queue_reply(xenbus_dev_t *, const struct xsd_sockmsg *,
/* Solaris driver framework */
-static struct cb_ops xenbusdrv_cb_ops = {
+static struct cb_ops xenbusdrv_cb_ops = {
xenbusdrv_open, /* cb_open */
xenbusdrv_close, /* cb_close */
nodev, /* cb_strategy */
@@ -286,7 +286,7 @@ xenbusdrv_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
NULL);
error = ddi_create_minor_node(dip, "xenbus", S_IFCHR, unit,
- DDI_PSEUDO, NULL);
+ DDI_PSEUDO, 0);
if (error != DDI_SUCCESS)
goto fail;