Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/specfs In spec_strategy, if fscow_run() fails, se...
details: https://anonhg.NetBSD.org/src/rev/82c57702ec84
branches: trunk
changeset: 788811:82c57702ec84
user: dholland <dholland%NetBSD.org@localhost>
date: Sat Jul 20 22:42:59 2013 +0000
description:
In spec_strategy, if fscow_run() fails, set b_resid along with b_error
to avoid panic in biodone. Noticed by riastradh.
diffstat:
sys/miscfs/specfs/spec_vnops.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 8c2addeb2bef -r 82c57702ec84 sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c Sat Jul 20 22:16:02 2013 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c Sat Jul 20 22:42:59 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spec_vnops.c,v 1.138 2013/06/16 20:46:24 dholland Exp $ */
+/* $NetBSD: spec_vnops.c,v 1.139 2013/07/20 22:42:59 dholland Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.138 2013/06/16 20:46:24 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.139 2013/07/20 22:42:59 dholland Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -995,6 +995,7 @@
if (error) {
bp->b_error = error;
+ bp->b_resid = bp->b_count;
biodone(bp);
return (error);
}
Home |
Main Index |
Thread Index |
Old Index