Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ieee1394 Bugfix: re-order double buffer only when se...
details: https://anonhg.NetBSD.org/src/rev/5c7ae39cdace
branches: trunk
changeset: 515984:5c7ae39cdace
user: haya <haya%NetBSD.org@localhost>
date: Fri Oct 12 09:27:23 2001 +0000
description:
Bugfix: re-order double buffer only when second buffer exists.
diffstat:
sys/dev/ieee1394/fwohci.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r ddc421d62bc2 -r 5c7ae39cdace sys/dev/ieee1394/fwohci.c
--- a/sys/dev/ieee1394/fwohci.c Fri Oct 12 07:30:23 2001 +0000
+++ b/sys/dev/ieee1394/fwohci.c Fri Oct 12 09:27:23 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fwohci.c,v 1.43 2001/09/18 16:11:00 tsutsui Exp $ */
+/* $NetBSD: fwohci.c,v 1.44 2001/10/12 09:27:23 haya Exp $ */
#define DOUBLEBUF 1
#define NO_THREAD 1
@@ -938,7 +938,9 @@
struct fwohci_ctx *fc;
struct fwohci_buf *fb;
struct fwohci_desc *fd;
+#if DOUBLEBUF
int buf2cnt;
+#endif
fc = malloc(sizeof(*fc) + sizeof(*fb) * bufcnt, M_DEVBUF, M_WAITOK);
memset(fc, 0, sizeof(*fc) + sizeof(*fb) * bufcnt);
@@ -1021,7 +1023,8 @@
struct fwohci_handler *fh;
#if DOUBLEBUF
- if (TAILQ_FIRST(&fc->fc_buf) > TAILQ_FIRST(&fc->fc_buf2)) {
+ if ((fc->fc_type == FWOHCI_CTX_ISO_MULTI) &&
+ (TAILQ_FIRST(&fc->fc_buf) > TAILQ_FIRST(&fc->fc_buf2))) {
struct fwohci_buf_s fctmp;
fctmp = fc->fc_buf;
Home |
Main Index |
Thread Index |
Old Index