Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev restore deleted lines that kept buffer fields resid, ...
details: https://anonhg.NetBSD.org/src/rev/905659002eb2
branches: trunk
changeset: 339976:905659002eb2
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Tue Aug 18 21:24:19 2015 +0000
description:
restore deleted lines that kept buffer fields resid,count and error consistent.
diffstat:
sys/dev/cgd.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 36339cbf5f7f -r 905659002eb2 sys/dev/cgd.c
--- a/sys/dev/cgd.c Tue Aug 18 21:10:56 2015 +0000
+++ b/sys/dev/cgd.c Tue Aug 18 21:24:19 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.99 2015/08/16 18:00:03 mlelstv Exp $ */
+/* $NetBSD: cgd.c,v 1.100 2015/08/18 21:24:19 mlelstv Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.99 2015/08/16 18:00:03 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.100 2015/08/18 21:24:19 mlelstv Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -477,6 +477,11 @@
putiobuf(nbp);
+ /* Request is complete for whatever reason */
+ obp->b_resid = 0;
+ if (obp->b_error != 0)
+ obp->b_resid = obp->b_bcount;
+
dk_done(dksc, obp);
}
Home |
Main Index |
Thread Index |
Old Index