linux-xiaomi-chiron/drivers/staging/comedi
H Hartley Sweeten eb3a13230b staging: comedi: comedi_buf: make comedi_buf_write_samples() add samples that fit
This function currently fails if the number of samples to add would
overflow the async buffer. Modify it to add the samples that fit so
at least some of the sample data is returned to the user.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-03 16:11:59 -08:00
..
drivers staging: comedi: das16: use spin-lock when setting timer 2014-10-30 13:29:31 -07:00
kcomedilib Staging: comedi: kcomedilib: replace deprecated simple_strtoul() with kstrtouint() 2014-02-15 12:42:41 -08:00
comedi.h staging: comedi: comedidev.h: don't expose COMEDI_CB_* defines to userspace 2014-10-29 15:47:11 +08:00
comedi_buf.c staging: comedi: comedi_buf: make comedi_buf_write_samples() add samples that fit 2014-11-03 16:11:59 -08:00
comedi_compat32.c staging: comedi: comedi_compat32: checkpatch.pl --strict cleanup 2014-07-18 16:10:39 -07:00
comedi_compat32.h staging: comedi: comedi_compat32.h: checkpatch.pl --strict cleanup 2014-07-18 16:10:40 -07:00
comedi_fops.c Merge 3.18-rc3 into staging-next 2014-11-02 18:06:03 -08:00
comedi_internal.h staging: comedi: comedi_internal.h: checkpatch.pl --strict cleanup 2014-07-18 16:10:39 -07:00
comedi_pci.c staging: comedi: comedi_pci: introduce comedi_pci_detach() 2014-08-30 13:24:54 -07:00
comedi_pcmcia.c
comedi_usb.c staging: comedi: introduce comedi_to_usb_dev() 2013-05-21 10:59:10 -07:00
comedidev.h staging: comedi: introduce some sample size manipulation functions 2014-10-29 16:12:41 +08:00
comedilib.h staging: comedi: comedi_bond: handle base channel for insn_bits 2013-08-26 06:41:56 -07:00
drivers.c staging: comedi: comedidev.h: clarify async->event error/cancel detection 2014-10-29 15:47:11 +08:00
Kconfig Merge 3.18-rc3 into staging-next 2014-11-02 18:06:03 -08:00
Makefile staging: comedi: remove comedi_debug module parameter 2013-11-25 11:50:53 -08:00
proc.c Staging: comedi: proc: title block update 2014-03-19 04:41:04 +00:00
range.c staging: comedi: Remove unecessary function and it's call 2014-10-20 10:29:13 +08:00
TODO staging: comedi: TODO: remove item "reserve major number" 2014-05-28 14:18:11 -07:00