diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-18 13:49:34 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-02-25 19:28:26 +0200 |
commit | 8d3c0bf06dddf77026f7ea064cfccfae818b5b0f (patch) | |
tree | 0b296d8741ad8ab369c1e0fb54211f60e80ca6b3 | |
parent | a3f59f6e87a609ee4950ebfcf34be0cca305e58b (diff) | |
download | illumos-joyent-8d3c0bf06dddf77026f7ea064cfccfae818b5b0f.tar.gz |
10434 dump: NULL pointer errors
Reviewed by: Aurélien Larcher <aurelien.larcher@gmail.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/uts/common/io/dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/dump.c b/usr/src/uts/common/io/dump.c index ab5a9d0240..4fd52e6448 100644 --- a/usr/src/uts/common/io/dump.c +++ b/usr/src/uts/common/io/dump.c @@ -54,7 +54,7 @@ dump_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) { if (cmd != DDI_ATTACH) return (DDI_FAILURE); - if (ddi_create_minor_node(devi, "dump", S_IFCHR, 0, DDI_PSEUDO, NULL) == + if (ddi_create_minor_node(devi, "dump", S_IFCHR, 0, DDI_PSEUDO, 0) == DDI_FAILURE) { ddi_remove_minor_node(devi, NULL); return (DDI_FAILURE); @@ -235,7 +235,7 @@ struct cb_ops dump_cb_ops = { dump_ioctl, /* ioctl */ nodev, /* devmap */ nodev, /* mmap */ - nodev, /* segmap */ + nodev, /* segmap */ nochpoll, /* poll */ ddi_prop_op, /* prop_op */ 0, /* streamtab */ |