kernel-fxtec-pro1x/drivers/staging
H Hartley Sweeten 1e85c1ea1f staging: comedi: adv_pci1710: fix analog output readback value
The last value written to a analog output channel is cached in the
private data of this driver for readback.

Currently, the wrong value is cached in the (*insn_write) functions.
The current code stores the data[n] value for readback afer the loop
has written all the values. At this time 'n' points past the end of
the data array.

Fix the functions by using a local variable to hold the data being
written to the analog output channel. This variable is then used
after the loop is complete to store the readback value. The current
value is retrieved before the loop in case no values are actually
written..

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-07 09:19:30 -08:00
..
android staging: ion: Fix build warning 2014-02-07 09:03:16 -08:00
bcm Staging driver tree patches for 3.14-rc1 2014-01-20 15:51:35 -08:00
ced1401
comedi staging: comedi: adv_pci1710: fix analog output readback value 2014-02-07 09:19:30 -08:00
cptm1217
crystalhd
cxt1e1 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-01-25 11:17:34 -08:00
dgap Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-01-25 11:17:34 -08:00
dgnc
dgrp Revert "Staging: dgrp: Refactor the function dgrp_receive() in drrp_net_ops.c" 2014-02-07 09:16:38 -08:00
echo
et131x
frontier
ft1000
fwserial
gdm72xx staging: gdm72xx: fix leaks at failure path in gdm_usb_probe() 2014-02-07 09:19:30 -08:00
gdm724x
goldfish
iio First set of IIO fixes for the 3.14 cycle. 2014-02-07 08:57:00 -08:00
imx-drm staging: imx-drm: Fix build error 2014-02-05 12:02:18 -08:00
keucr
line6
lustre lustre: add myself to list of people to CC on lustre patches 2014-02-07 09:09:38 -08:00
media Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2014-01-31 09:31:14 -08:00
mt29f_spinand
netlogic
nvec ARM: SoC cleanups for 3.14 2014-01-23 18:36:55 -08:00
octeon
octeon-usb staging: octeon-usb: Probe via device tree populated platform device. 2014-02-07 09:11:28 -08:00
olpc_dcon
ozwpan Staging: ozwpan: Fix null dereference 2014-02-07 09:15:35 -08:00
panel
phison
quickstart
rtl8187se
rtl8188eu staging: r8188eu: memory corruption handling long ssids 2014-02-07 09:19:30 -08:00
rtl8192e
rtl8192u
rtl8712
rtl8821ae staging: rtl8821ae: Fixed the size of array to macro as discussed by Linus 2014-02-07 09:15:35 -08:00
rts5139 Staging: rts5139: rts51x_card: fixed style issues 2014-01-13 15:24:18 -08:00
rts5208
sb105x
sbe-2t3e3
sep
serqt_usb2
silicom
slicoss
sm7xxfb
speakup
ste_rmi4
tidspbridge staging: tidspbridge: adjust error return code (bugfix) 2014-01-13 15:24:18 -08:00
usbip staging/usbip: Fix vhci_hcd attach failure error message to be informative 2014-02-07 09:15:35 -08:00
vme
vt6655 staging: vt6655: Fix memory leak in wpa_ioctl() 2014-01-13 15:19:41 -08:00
vt6656 staging: vt6656: sparse fixes: iwctl_giwgenie use memcpy. 2014-01-13 15:46:19 -08:00
winbond Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-01-25 11:17:34 -08:00
wlags49_h2 staging: wlags49_h2: Fix "do not use C99 //" in wl_cs.h, wl_enc.h wl_main.h and wl_wext.h 2014-01-13 15:19:41 -08:00
wlags49_h25
wlan-ng
xgifb
xillybus
Kconfig Staging wireless driver for 3.14-rc1 2014-02-01 10:29:59 -08:00
Makefile Staging wireless driver for 3.14-rc1 2014-02-01 10:29:59 -08:00
staging.c