diff options
author | 1997-01-31 10:31:43 +0000 | |
---|---|---|
committer | 1997-01-31 10:31:43 +0000 | |
commit | 753be97c7870194273199977fd815ba8d11f434c (patch) | |
tree | 5351003696e2102114a6cc2ebbc880111d127315 | |
parent | do not walk off the end of a directory info buffer; netbsd pr#3170, mhitch@gemini.oscs.montana.edu (diff) | |
download | wireguard-openbsd-753be97c7870194273199977fd815ba8d11f434c.tar.xz wireguard-openbsd-753be97c7870194273199977fd815ba8d11f434c.zip |
if error, b_resid = b_bcount
-rw-r--r-- | sys/dev/ccd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index d62139b68ee..0dd31541ff5 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.13 1996/12/19 18:26:58 deraadt Exp $ */ +/* $OpenBSD: ccd.c,v 1.14 1997/01/31 10:31:43 deraadt Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -644,6 +644,7 @@ ccdstrategy(bp) #endif if ((cs->sc_flags & CCDF_INITED) == 0) { bp->b_error = ENXIO; + bp->b_resid = bp->b_bcount; bp->b_flags |= B_ERROR; goto done; } |