]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging: comedi: check comedi_auto_config() params
authorIan Abbott <abbotti@mev.co.uk>
Thu, 4 Apr 2013 13:58:42 +0000 (14:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 21:33:16 +0000 (14:33 -0700)
commitf08e0ac59a93db2d8abc7000e2647164104524c6
treec240825d91b7e0cbf9db4b57d047a519e971416e
parent7e1389a9e622a421e85e8611c76bd9142bf4bff1
staging: comedi: check comedi_auto_config() params

Do some minimal error checking of the parameters of
`comedi_auto_config()`.  Just make sure the `hardware_device` and
`driver` parameters are non-NULL.

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