Skip to content
Permalink
Browse files

10390 consms: NULL pointer errors

Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Robert Mustacchi <rm@joyent.com>
  • Loading branch information
tsoome committed Jan 18, 2019
1 parent a64c677 commit 6cd62caa5b5899503c648f5b5ce211b7eec6644d
Showing with 2 additions and 2 deletions.
  1. +2 −2 usr/src/uts/common/io/consms.c
@@ -274,7 +274,7 @@ consms_attach(dev_info_t *devi, ddi_attach_cmd_t cmd)
}

if (ddi_create_minor_node(devi, "mouse", S_IFCHR,
0, DDI_PSEUDO, NULL) == DDI_FAILURE) {
0, DDI_PSEUDO, 0) == DDI_FAILURE) {
ddi_remove_minor_node(devi, NULL);
return (-1);
}
@@ -973,7 +973,7 @@ consms_new_firm_event(ushort_t id, int value)
fep = (Firm_event *)tmp->b_wptr;
fep->id = id;
fep->pair_type = FE_PAIR_NONE;
fep->pair = NULL;
fep->pair = '\0';
fep->value = value;
tmp->b_wptr += sizeof (Firm_event);
}

0 comments on commit 6cd62ca

Please sign in to comment.
You can’t perform that action at this time.