summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2018-10-30 14:17:11 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-07 13:05:38 +0100
commit130151991dcb14e5c383c730b3ef37a6fdc32c95 (patch)
treea747ccb05b2fe50ae8df0520d6bfe33a414c346c /tools/perf/scripts/python/bin
parentfafb85b45f68e95e784d025696512ea062c00bd4 (diff)
downloadlinux-130151991dcb14e5c383c730b3ef37a6fdc32c95.tar.gz
linux-130151991dcb14e5c383c730b3ef37a6fdc32c95.zip
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 <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions