Module Name: src Committed By: bouyer Date: Thu Aug 8 17:38:56 UTC 2013
Modified Files: src/sys/dev/ic: siisata.c Log Message: Fix reverted condition. Fix panic reported by Patrick Welche on current-users with an ATAPI device connected to siisata. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 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.26 src/sys/dev/ic/siisata.c:1.27 --- src/sys/dev/ic/siisata.c:1.26 Sat Jun 22 05:41:25 2013 +++ src/sys/dev/ic/siisata.c Thu Aug 8 17:38:56 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: siisata.c,v 1.26 2013/06/22 05:41:25 matt Exp $ */ +/* $NetBSD: siisata.c,v 1.27 2013/08/08 17:38:56 bouyer Exp $ */ /* from ahcisata_core.c */ @@ -79,7 +79,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.26 2013/06/22 05:41:25 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.27 2013/08/08 17:38:56 bouyer Exp $"); #include <sys/types.h> #include <sys/malloc.h> @@ -1417,7 +1417,7 @@ siisata_atapi_probe_device(struct atapib return; /* if no ATAPI device detected at attach time, skip */ - if (drvp->drive_type == ATA_DRIVET_ATAPI) { + if (drvp->drive_type != ATA_DRIVET_ATAPI) { SIISATA_DEBUG_PRINT(("%s: drive %d " "not present\n", __func__, target), DEBUG_PROBE); return;