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)
commit4f0036ef09387a49b709d9b319ad93492e53d790
tree46fd057facfc68bf721d2f02b31bc1e2d721ea40
parent0a5aed487645b13531b876775c1390afd20296a5
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