From: H Hartley Sweeten Date: Tue, 9 Sep 2014 23:16:04 +0000 (-0700) Subject: staging: comedi: s626: fix cmd->stop_arg validation for stop_src == TRIG_COUNT X-Git-Tag: fixes-for-v3.18-merge-window~15^2~485 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32f9ff7039eb59eaef0c153328601ac6164b746a;p=pandora-kernel.git staging: comedi: s626: fix cmd->stop_arg validation for stop_src == TRIG_COUNT The only limit for the stop_arg with a stop_src == TRIG_COUNT is that there is at least 1 scan in order to prevent an empty acquisition. The max test is bogus. Fix the validation. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed