staging: comedi: usbduxsigma: check for invalid 'ao_timer' in all cases
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 20:05:59 +0000 (13:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:41:08 +0000 (20:41 +0900)
commitdd64d1efdab83d0c702a27ee7893c5df492cfe1f
tree4002b122a00f65ad9d10dc9ff18ae38e66ecc717
parentb986be8527c7a9a84025689d5e85bc03300bb091
staging: comedi: usbduxsigma: check for invalid 'ao_timer' in all cases

Make sure to check that the 'ao_timer' value is valid for both the
high speed and low speed cases in usbduxsigma_ao_cmdtest().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxsigma.c