From 9e6d170baf33cc271f6b73d7325382201eaccc26 Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Mon, 12 Feb 2024 16:14:24 -0800 Subject: [PATCH] bug fix for 'seq_file: buggy .next function Dma_SeqNext [datadev] did not update position index' error msg --- common/driver/dma_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/driver/dma_common.c b/common/driver/dma_common.c index db390b2..adab515 100755 --- a/common/driver/dma_common.c +++ b/common/driver/dma_common.c @@ -1003,7 +1003,9 @@ void * Dma_SeqStart(struct seq_file *s, loff_t *pos) { // Sequence next, always return NULL void * Dma_SeqNext(struct seq_file *s, void *v, loff_t *pos) { - return NULL; + loff_t *position = pos; + (*position)++; + return NULL; // or return pointer to next item }