summaryrefslogtreecommitdiff
path: root/usr/src/common/mdesc/mdesc_scandag.c
diff options
context:
space:
mode:
authorla135387 <none@none>2005-07-22 16:18:39 -0700
committerla135387 <none@none>2005-07-22 16:18:39 -0700
commit26cf27f05670b1ca90e4a07802cba858cb358690 (patch)
treee688cf237930db054ae49f8feea76058db33ad64 /usr/src/common/mdesc/mdesc_scandag.c
parent70f54ead78cbbb40e97bd3ff9f175c5c71783c3c (diff)
downloadillumos-joyent-26cf27f05670b1ca90e4a07802cba858cb358690.tar.gz
6263078 Machine description API doesn't support kmem_free()
6264415 md_fini should not free the pointer to the machine description data 6292409 prtdiag: cannot open /dev/openprom: Permission denied ; when run as non root user only
Diffstat (limited to 'usr/src/common/mdesc/mdesc_scandag.c')
-rw-r--r--usr/src/common/mdesc/mdesc_scandag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/common/mdesc/mdesc_scandag.c b/usr/src/common/mdesc/mdesc_scandag.c
index 58e0b0d39f..11b4e24ab2 100644
--- a/usr/src/common/mdesc/mdesc_scandag.c
+++ b/usr/src/common/mdesc/mdesc_scandag.c
@@ -112,7 +112,7 @@ md_scan_dag(md_t *ptr,
node_name_cookie, arc_name_cookie,
seenp, &idx, stashp, 0);
- mdp->freep(seenp);
+ mdp->freep(seenp, mdp->element_count);
return (res >= 0 ? idx : res);
}