]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: cb_pcidas: check for failure of subdev_8255_init
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 27 Jun 2012 01:03:34 +0000 (18:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:23:53 +0000 (15:23 -0700)
commit30a066aaa39befc9b6a0b60f334b7a8c71494e04
tree46fd057facfc68bf721d2f02b31bc1e2d721ea40
parent843882bedaff64ef4bb1d7f8c31638e8c705c3d9
staging: comedi: cb_pcidas: check for failure of subdev_8255_init

It's possible for subdev_8255_init() to fail due to its kzalloc().
Make sure to check for this failure and pass on the error code.

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/cb_pcidas.c