summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-04-11 15:13:08 +0300
committerToomas Soome <tsoome@me.com>2020-05-09 18:16:12 +0300
commitd34120274c30795a501f8eb0fca6b33dd4d49e63 (patch)
tree54ff99716942df6a8202df4f50eccefd2af48c9f /usr/src
parentafcb81194ea4372157c39b75a016574dcd6a81ee (diff)
downloadillumos-joyent-d34120274c30795a501f8eb0fca6b33dd4d49e63.tar.gz
12548 fcode: NULL pointer errors
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/sun4/io/efcode/fcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/sun4/io/efcode/fcode.c b/usr/src/uts/sun4/io/efcode/fcode.c
index 8610697835..eebe57bf7f 100644
--- a/usr/src/uts/sun4/io/efcode/fcode.c
+++ b/usr/src/uts/sun4/io/efcode/fcode.c
@@ -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;