Module Name:    src
Committed By:   christos
Date:           Sun Oct  8 21:29:34 UTC 2017

Modified Files:
        src/sys/dev/scsipi: atapi_wdc.c

Log Message:
initialize tfd


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/sys/dev/scsipi/atapi_wdc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/scsipi/atapi_wdc.c
diff -u src/sys/dev/scsipi/atapi_wdc.c:1.125 src/sys/dev/scsipi/atapi_wdc.c:1.126
--- src/sys/dev/scsipi/atapi_wdc.c:1.125	Sun Oct  8 17:18:14 2017
+++ src/sys/dev/scsipi/atapi_wdc.c	Sun Oct  8 17:29:34 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: atapi_wdc.c,v 1.125 2017/10/08 21:18:14 joerg Exp $	*/
+/*	$NetBSD: atapi_wdc.c,v 1.126 2017/10/08 21:29:34 christos Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.125 2017/10/08 21:18:14 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.126 2017/10/08 21:29:34 christos Exp $");
 
 #ifndef ATADEBUG
 #define ATADEBUG
@@ -1079,7 +1079,8 @@ wdc_atapi_phase_complete(struct ata_xfer
 			}
 			return;
 		}
-	}
+	} else
+		tfd = 0;
 
 	/*
 	 * Some drive occasionally set WDCS_ERR with

Reply via email to