diff --git a/usr/src/uts/common/os/devcfg.c b/usr/src/uts/common/os/devcfg.c index cc37b39ec5fb..b74c8bec9782 100644 --- a/usr/src/uts/common/os/devcfg.c +++ b/usr/src/uts/common/os/devcfg.c @@ -8532,6 +8539,7 @@ e_ddi_retire_finalize(dev_info_t *dip, void *arg) * cons_array is a NULL terminated array of node paths for * which constraints have already been applied. */ +#include "/home/dcarpenter/progs/smatch/devel/check_debug.h" int e_ddi_retire_device(char *path, char **cons_array) { @@ -8563,7 +8571,9 @@ e_ddi_retire_device(char *path, char **cons_array) RIO_DEBUG((CE_NOTE, "Retire device: found dip = %p.", (void *)dip)); pdip = ddi_get_parent(dip); + __smatch_local_debug_on(); ndi_hold_devi(pdip); + __smatch_local_debug_off(); /* * Run devfs_clean() in case dip has no constraints and is