aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2018-10-30 14:17:11 +0000
committerGreg Kroah-Hartman <[email protected]>2018-11-07 13:05:38 +0100
commit130151991dcb14e5c383c730b3ef37a6fdc32c95 (patch)
treea747ccb05b2fe50ae8df0520d6bfe33a414c346c /tools/perf/scripts/python
parentfafb85b45f68e95e784d025696512ea062c00bd4 (diff)
staging: comedi: cb_pcidas64: Use insn->n in AO insn_write handler
The `insn_write` handler for the AO subdevice (`ao_winsn()` currently ignores `insn->n` (the number of samples to write) and assumes a single sample is to be written. But `insn->n` could be 0, meaning no samples should be written, in which case `data[0]` is invalid. Follow the usual Comedi guidelines and change `ao_winsn()` to write the specified number of samples. This fixes the assumption that `data[0]` is valid. Signed-off-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions