Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Restore spl before continue.



details:   https://anonhg.NetBSD.org/src/rev/3a99582e4a5a
branches:  trunk
changeset: 783406:3a99582e4a5a
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Wed Dec 19 14:05:29 2012 +0000

description:
Restore spl before continue.

diffstat:

 sys/dev/ic/wdc.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ca966cdb22c5 -r 3a99582e4a5a sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Wed Dec 19 13:53:47 2012 +0000
+++ b/sys/dev/ic/wdc.c  Wed Dec 19 14:05:29 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.275 2012/11/19 22:22:56 rkujawa Exp $ */
+/*     $NetBSD: wdc.c,v 1.276 2012/12/19 14:05:29 kiyohara Exp $ */
 
 /*
  * Copyright (c) 1998, 2001, 2003 Manuel Bouyer.  All rights reserved.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.275 2012/11/19 22:22:56 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.276 2012/12/19 14:05:29 kiyohara Exp $");
 
 #include "opt_ata.h"
 #include "opt_wdc.h"
@@ -406,6 +406,7 @@
                        if (chp->ch_drive[i].drive_type != ATA_DRIVET_ATA ||
                            (wdc->cap & WDC_CAPABILITY_PREATA) == 0) {
                                chp->ch_drive[i].drive_type = ATA_DRIVET_NONE;
+                               splx(s);
                                continue;
                        }
                        splx(s);



Home | Main Index | Thread Index | Old Index