Module Name:    src
Committed By:   jakllsch
Date:           Sun Apr 23 01:26:50 UTC 2017

Modified Files:
        src/sys/dev/ic [jdolecek-ncq]: siisata.c

Log Message:
Fix inverted ata_waitdrain_xfer_check() logic in siisata_atapi_complete().


To generate a diff of this commit:
cvs rdiff -u -r1.30.4.8 -r1.30.4.9 src/sys/dev/ic/siisata.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/ic/siisata.c
diff -u src/sys/dev/ic/siisata.c:1.30.4.8 src/sys/dev/ic/siisata.c:1.30.4.9
--- src/sys/dev/ic/siisata.c:1.30.4.8	Sat Apr 22 14:08:38 2017
+++ src/sys/dev/ic/siisata.c	Sun Apr 23 01:26:50 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.30.4.8 2017/04/22 14:08:38 jakllsch Exp $ */
+/* $NetBSD: siisata.c,v 1.30.4.9 2017/04/23 01:26:50 jakllsch Exp $ */
 
 /* from ahcisata_core.c */
 
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.30.4.8 2017/04/22 14:08:38 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.30.4.9 2017/04/23 01:26:50 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1668,7 +1668,7 @@ siisata_atapi_complete(struct ata_channe
 
 	ata_deactivate_xfer(chp, xfer);
 
-	if (!ata_waitdrain_xfer_check(chp, xfer)) {
+	if (ata_waitdrain_xfer_check(chp, xfer)) {
 		sc_xfer->error = XS_DRIVER_STUFFUP;
 		return 0; /* XXX verify */
 	}

Reply via email to