diff options
| author | bouyer <bouyer@NetBSD.org> | 2013-08-08 17:38:56 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2013-08-08 17:38:56 +0000 |
| commit | 4ee523033bef806a2a5d3fb7bf42481f3d74a969 (patch) | |
| tree | eb6cfcd1510187a75ca8dcca91fbe72f3707dcf2 /sys/dev/ic | |
| parent | c6a2d2f7271261f6a67062402768cbf53a94c07f (diff) | |
Fix reverted condition. Fix panic reported by Patrick Welche on
current-users with an ATAPI device connected to siisata.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/siisata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/siisata.c b/sys/dev/ic/siisata.c index 8910882cb07..ea7150b1503 100644 --- a/sys/dev/ic/siisata.c +++ b/sys/dev/ic/siisata.c @@ -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 atapibus_softc *sc, int target) 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; |
