Skip to content

Commit

Permalink
bug fix for 'seq_file: buggy .next function Dma_SeqNext [datadev] did…
Browse files Browse the repository at this point in the history
… not update position index' error msg
  • Loading branch information
ruck314 committed Feb 13, 2024
1 parent 5fc652c commit 9e6d170
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/driver/dma_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down

0 comments on commit 9e6d170

Please sign in to comment.