From b798e010bf650d3252fd767dff39df1ccc12d285 Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Mon, 13 Aug 2012 14:39:38 -0400 Subject: [PATCH] 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 --- usr/src/uts/common/io/dcopy.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/usr/src/uts/common/io/dcopy.c b/usr/src/uts/common/io/dcopy.c index 02163c7e9e..b0beab93b5 100644 --- a/usr/src/uts/common/io/dcopy.c +++ b/usr/src/uts/common/io/dcopy.c @@ -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_free(dcopy_handle_t *channel) { dcopy_device_handle_t device; dcopy_list_t *list; - boolean_t cleanup; + boolean_t cleanup = B_FALSE; ASSERT(*channel != NULL); @@ -348,7 +346,6 @@ dcopy_free(dcopy_handle_t *channel) * 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--; -- 2.11.4.GIT