changeset 13771:2903afd49fe8

3080 uninitialized var in dcopy_free may panic on boot Reviewed by: Joshua M. Clulow <josh@sysmgr.org> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Dan McDonald <danmcd@nexenta.com> Approved by: Garrett D'Amore <garrett@damore.org>
author Richard Lowe <richlowe@richlowe.net>
date Mon, 13 Aug 2012 14:39:38 -0400
parents f6f7025c7a4d
children 2579580ac955
files usr/src/uts/common/io/dcopy.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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--;