From: H Hartley Sweeten Date: Thu, 30 Oct 2014 18:10:50 +0000 (-0700) Subject: staging: comedi: comedi_buf: make comedi_buf_write_samples() add samples that fit X-Git-Tag: omap-for-v3.20/drop-legacy-3517~70^2~490 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb3a13230b78c3dc580b509e370862c632c90dae;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed