Module Name: src Committed By: mlelstv Date: Wed Sep 14 23:05:05 UTC 2016
Modified Files: src/sys/dev: dksubr.c Log Message: Set b_resid in error path. To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.89 src/sys/dev/dksubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/dksubr.c diff -u src/sys/dev/dksubr.c:1.88 src/sys/dev/dksubr.c:1.89 --- src/sys/dev/dksubr.c:1.88 Mon Jun 27 18:27:51 2016 +++ src/sys/dev/dksubr.c Wed Sep 14 23:05:05 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: dksubr.c,v 1.88 2016/06/27 18:27:51 christos Exp $ */ +/* $NetBSD: dksubr.c,v 1.89 2016/09/14 23:05:05 mlelstv Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.88 2016/06/27 18:27:51 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.89 2016/09/14 23:05:05 mlelstv Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -286,7 +286,8 @@ dk_strategy1(struct dk_softc *dksc, stru if (!(dksc->sc_flags & DKF_INITED)) { DPRINTF_FOLLOW(("%s: not inited\n", __func__)); - bp->b_error = ENXIO; + bp->b_error = ENXIO; + bp->b_resid = bp->b_bcount; biodone(bp); return 1; }