# HG changeset patch # User Richard Lowe # Date 1344883178 14400 # Node ID 2903afd49fe8abfaf834042252b0d481aee28d6e # Parent f6f7025c7a4db49803d4410d9de41f3836cf61c7 3080 uninitialized var in dcopy_free may panic on boot Reviewed by: Joshua M. Clulow Reviewed by: Robert Mustacchi Reviewed by: Dan McDonald Approved by: Garrett D'Amore diff -r f6f7025c7a4d -r 2903afd49fe8 usr/src/uts/common/io/dcopy.c --- a/usr/src/uts/common/io/dcopy.c Sun Aug 12 07:51:54 2012 -0700 +++ b/usr/src/uts/common/io/dcopy.c Mon Aug 13 14:39:38 2012 -0400 @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * dcopy.c * dcopy misc module @@ -329,7 +327,7 @@ { dcopy_device_handle_t device; dcopy_list_t *list; - boolean_t cleanup; + boolean_t cleanup = B_FALSE; ASSERT(*channel != NULL); @@ -348,7 +346,6 @@ * removed on the device. */ if ((*channel)->ch_removing && ((*channel)->ch_ref_cnt == 0)) { - cleanup = B_FALSE; device = (*channel)->ch_device; mutex_enter(&device->dc_devchan_list.dl_mutex); device->dc_removing_cnt--;