commit | eb3a13230b78c3dc580b509e370862c632c90dae | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Thu Oct 30 11:10:50 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 03 16:11:59 2014 -0800 |
tree | 0f336e03d1d67ba81120585e0efa15efb4adaef5 | |
parent | 2b365fa9d9264faa7ebccf313899d096b228c65a [diff] |
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>