summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/devcfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/devcfg.c')
-rw-r--r--usr/src/uts/common/os/devcfg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/uts/common/os/devcfg.c b/usr/src/uts/common/os/devcfg.c
index 4a654317c9..cbcc4db3d8 100644
--- a/usr/src/uts/common/os/devcfg.c
+++ b/usr/src/uts/common/os/devcfg.c
@@ -311,6 +311,7 @@ i_ddi_alloc_node(dev_info_t *pdip, char *node_name, pnode_t nodeid,
* auto-assigned nodeids are also auto-freed.
*/
devi->devi_node_attributes = 0;
+ elem = NULL;
switch (nodeid) {
case DEVI_SID_HIDDEN_NODEID:
devi->devi_node_attributes |= DDI_HIDDEN_NODE;
@@ -2220,6 +2221,7 @@ find_sibling(dev_info_t *head, char *cname, char *caddr, uint_t flag,
return (NULL);
}
+ buf = NULL;
/* preallocate buffer of naming node by callback */
if (flag & FIND_ADDR_BY_CALLBACK)
buf = kmem_alloc(MAXNAMELEN, KM_SLEEP);