artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae0a2ab
)
Read events from all PCBs as long as there's no error.
author
mpi
<mpi@openbsd.org>
Wed, 21 Aug 2024 09:27:37 +0000
(09:27 +0000)
committer
mpi
<mpi@openbsd.org>
Wed, 21 Aug 2024 09:27:37 +0000
(09:27 +0000)
From Christian Ludwig.
sys/dev/dt/dt_dev.c
patch
|
blob
|
history
diff --git
a/sys/dev/dt/dt_dev.c
b/sys/dev/dt/dt_dev.c
index
99ce128
..
98b11ff
100644
(file)
--- a/
sys/dev/dt/dt_dev.c
+++ b/
sys/dev/dt/dt_dev.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dt_dev.c,v 1.3
4 2024/08/18 08:23:58
mpi Exp $ */
+/* $OpenBSD: dt_dev.c,v 1.3
5 2024/08/21 09:27:37
mpi Exp $ */
/*
* Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
@@
-239,7
+239,7
@@
dtread(dev_t dev, struct uio *uio, int flags)
TAILQ_FOREACH(dp, &sc->ds_pcbs, dp_snext) {
count = 0;
error = dt_pcb_ring_copy(dp, uio, max, &count, &dropped);
- if (error
||
count == 0)
+ if (error
&&
count == 0)
break;
read += count;