From fd32aa66ed42e4e10153887b26625a75b6f04120 Mon Sep 17 00:00:00 2001
From: "Wesley W. Terpstra" <w.terpstra@gsi.de>
Date: Mon, 30 Jul 2012 13:25:16 +0200
Subject: [PATCH] When a record has no reads, correctly advance the pointer.
 This never appeared until now because it only failed if two records appeared
 at once.

---
 driver/wishbone.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/driver/wishbone.c b/driver/wishbone.c
index 60aeddf..7f24f94 100644
--- a/driver/wishbone.c
+++ b/driver/wishbone.c
@@ -150,6 +150,8 @@ static void etherbone_process(struct etherbone_context* context)
 					i = RING_INDEX(i + sizeof(wb_data_t));
 				}
 			}
+		} else {
+			i = RING_INDEX(i + sizeof(wb_data_t));
 		}
 		
 		if ((flags & ETHERBONE_CYC) != 0) {
-- 
GitLab