]> git.baikalelectronics.ru Git - kernel.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)
commit81264345913a03b4ce934d4736b4d9d74959450d
treec240825d91b7e0cbf9db4b57d047a519e971416e
parent321e79e5651092649e2633523db85ad3d67f58ed
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