Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pad Add missing sc_bytes_count.
details: https://anonhg.NetBSD.org/src/rev/59e1261eb5c7
branches: trunk
changeset: 353890:59e1261eb5c7
user: nat <nat%NetBSD.org@localhost>
date: Sat May 27 10:43:30 2017 +0000
description:
Add missing sc_bytes_count.
diffstat:
sys/dev/pad/pad.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r c0712158603a -r 59e1261eb5c7 sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Sat May 27 10:04:57 2017 +0000
+++ b/sys/dev/pad/pad.c Sat May 27 10:43:30 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.29 2017/05/27 10:02:26 nat Exp $ */
+/* $NetBSD: pad.c,v 1.30 2017/05/27 10:43:30 nat Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.29 2017/05/27 10:02:26 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.30 2017/05/27 10:43:30 nat Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -396,6 +396,7 @@
err = pad_get_block(sc, &pb, min(uio->uio_resid, PAD_BLKSIZE));
if (!err) {
+ sc->sc_bytes_count += pb.pb_len;
mutex_exit(&sc->sc_lock);
err = uiomove(pb.pb_ptr, pb.pb_len, uio);
continue;
Home |
Main Index |
Thread Index |
Old Index