staging: comedi: me4000: validate cmd->stop_arg in step 3 of (*do_cmdtest)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Sep 2014 23:15:49 +0000 (16:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:35:21 +0000 (14:35 -0700)
commit76af50ddee4f2fa76089b25f763749874acce07a
treeac12e0c23773e2939a43f3102ba63020e5a9905d
parent759658ddff327675bbf35063e2b04e0d7424124d
staging: comedi: me4000: validate cmd->stop_arg in step 3 of (*do_cmdtest)

The async command arguments are supposed to be trivially validated in step 3
of the (*do_cmdtest). Fix the validation of the stop_arg.

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>
drivers/staging/comedi/drivers/me4000.c