From: H Hartley Sweeten Date: Mon, 26 Jan 2015 21:20:15 +0000 (-0700) Subject: staging: comedi: pcl812: fix logic error in pcl812_ai_setup_dma() X-Git-Tag: fixes-v4.0-rc1~99^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd27ae76d29d59aa834bf26d45535b1ba09ab543;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed