summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/mac/mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/io/mac/mac.c')
-rw-r--r--usr/src/uts/common/io/mac/mac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/mac/mac.c b/usr/src/uts/common/io/mac/mac.c
index 288bb79298..53bcc5fc94 100644
--- a/usr/src/uts/common/io/mac/mac.c
+++ b/usr/src/uts/common/io/mac/mac.c
@@ -1297,7 +1297,10 @@ mac_resource_add(mac_t *mp, mac_resource_t *mrp)
add = mip->mi_resource_add;
arg = mip->mi_resource_add_arg;
- mrh = add(arg, mrp);
+ if (add != NULL)
+ mrh = add(arg, mrp);
+ else
+ mrh = NULL;
rw_exit(&mip->mi_resource_lock);
return (mrh);