aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorNuno Sá <[email protected]>2020-11-12 15:43:22 +0100
committerJonathan Cameron <[email protected]>2020-12-03 19:32:44 +0000
commit19ef7b70ca9487773c29b449adf0c70f540a0aab (patch)
treef11e80fb2973f166a16ca365ac0cebc79ea67112 /scripts/gdb/linux/modules.py
parente08b60d352dbc3c32d64bdaedbb481fcdc14ff6c (diff)
iio: buffer: Fix demux update
When updating the buffer demux, we will skip a scan element from the device in the case `in_ind != out_ind` and we enter the while loop. in_ind should only be refreshed with `find_next_bit()` in the end of the loop. Note, to cause problems we need a situation where we are skippig over an element (channel not enabled) that happens to not have the same size as the next element. Whilst this is a possible situation we haven't actually identified any cases in mainline where it happens as most drivers have consistent channel storage sizes with the exception of the timestamp which is the last element and hence never skipped over. Fixes: 5ada4ea9be16 ("staging:iio: add demux optionally to path from device to buffer") Signed-off-by: Nuno Sá <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions