From 34087db80b01a2ccaf94ae79df1a9da3bece037d Mon Sep 17 00:00:00 2001 From: htk Date: Mon, 3 Mar 2008 15:32:01 -0800 Subject: 6667505 process_devinfo_tree() uses stale data off the stack --- usr/src/cmd/devfsadm/devfsadm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'usr/src/cmd/devfsadm/devfsadm.c') diff --git a/usr/src/cmd/devfsadm/devfsadm.c b/usr/src/cmd/devfsadm/devfsadm.c index a06fac3e02..fb9a50ad3c 100644 --- a/usr/src/cmd/devfsadm/devfsadm.c +++ b/usr/src/cmd/devfsadm/devfsadm.c @@ -1116,6 +1116,14 @@ process_devinfo_tree() flags |= DINFOCLEANUP; } } + } else { + /* + * For devlinks, disks, ports, tapes and devfsadm -n, + * just need to take a snapshot with active devices. + */ + vprint(CHATTY_MID, "%staking snapshot of active devices\n", + fcn); + flags = DINFOCPYALL; } if (((load_attach_drv == TRUE) || (single_drv == TRUE)) && -- cgit v1.2.3