Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ata add missing setting of b_error (thanks Manuel)
details: https://anonhg.NetBSD.org/src/rev/7b88ef2bbc16
branches: trunk
changeset: 545732:7b88ef2bbc16
user: darrenr <darrenr%NetBSD.org@localhost>
date: Wed Apr 16 00:07:17 2003 +0000
description:
add missing setting of b_error (thanks Manuel)
diffstat:
sys/dev/ata/wd.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r a814c85e2aab -r 7b88ef2bbc16 sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c Tue Apr 15 23:15:47 2003 +0000
+++ b/sys/dev/ata/wd.c Wed Apr 16 00:07:17 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wd.c,v 1.244 2003/04/15 19:14:58 nathanw Exp $ */
+/* $NetBSD: wd.c,v 1.245 2003/04/16 00:07:17 darrenr Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.244 2003/04/15 19:14:58 nathanw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.245 2003/04/16 00:07:17 darrenr Exp $");
#ifndef WDCDEBUG
#define WDCDEBUG
@@ -548,8 +548,10 @@
SLIST_FOREACH(dbs, &wd->sc_bslist, dbs_next)
if ((dbs->dbs_min <= blkno && blkno <= dbs->dbs_max) ||
- (dbs->dbs_min <= maxblk && maxblk <= dbs->dbs_max))
+ (dbs->dbs_min <= maxblk && maxblk <= dbs->dbs_max)){
+ bp->b_error = EIO;
goto bad;
+ }
}
/* Queue transfer on drive, activate drive and controller if idle. */
Home |
Main Index |
Thread Index |
Old Index