Skip to content

Commit

Permalink
12548 fcode: NULL pointer errors
Browse files Browse the repository at this point in the history
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Garrett D'Amore <garrett@damore.org>
  • Loading branch information
tsoome committed May 9, 2020
1 parent afcb811 commit d341202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/uts/sun4/io/efcode/fcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ fc_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
fc_max_opens * sizeof (struct fc_state), KM_SLEEP);

if (ddi_create_minor_node(dip, "fcode", S_IFCHR,
0, DDI_PSEUDO, NULL) == DDI_FAILURE) {
0, DDI_PSEUDO, 0) == DDI_FAILURE) {
kmem_free(fc_states,
fc_max_opens * sizeof (struct fc_state));
error = DDI_FAILURE;
Expand Down

0 comments on commit d341202

Please sign in to comment.