Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pad Fix logic for timing.
details: https://anonhg.NetBSD.org/src/rev/d2bddff7d0dd
branches: trunk
changeset: 376012:d2bddff7d0dd
user: nat <nat%NetBSD.org@localhost>
date: Fri May 26 10:39:56 2023 +0000
description:
Fix logic for timing.
Addresses PR/57436.
XXX pullup-10.
diffstat:
sys/dev/pad/pad.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0945ffa711ed -r d2bddff7d0dd sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Fri May 26 06:36:39 2023 +0000
+++ b/sys/dev/pad/pad.c Fri May 26 10:39:56 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.82 2023/05/01 16:35:47 mlelstv Exp $ */
+/* $NetBSD: pad.c,v 1.83 2023/05/26 10:39:56 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.82 2023/05/01 16:35:47 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.83 2023/05/26 10:39:56 nat Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -324,7 +324,7 @@ pad_get_block(struct pad_softc *sc, pad_
KASSERT(maxblksize > 0);
KASSERT(mutex_owned(&sc->sc_intr_lock));
- if (sc->sc_buflen == 0 && !dowait)
+ if (sc->sc_buflen == 0 && dowait)
return EAGAIN;
while (sc->sc_buflen == 0) {
Home |
Main Index |
Thread Index |
Old Index