commit | fd27ae76d29d59aa834bf26d45535b1ba09ab543 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Mon Jan 26 14:20:15 2015 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jan 28 11:16:18 2015 -0800 |
tree | bdadf3089c3eabef3ee62cc31fee3cff5282db6f | |
parent | 119c964399559e4bbfda9cdd7161c499ddba1470 [diff] |
staging: comedi: pcl812: fix logic error in pcl812_ai_setup_dma() commit 92afc2b229038d7b962ae69de5b07bc6c1cf51bf inroduced a logic error in the DMA size calculation. If the 'nsamples' is greater than the 'unread_samples' then DMA needs to be restarted. The current code checks it agains the 'max_samples'. 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>