commit | 8b6c56949ffa83dbc2a6e8fa3f98b10a19372207 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hartleys@visionengravers.com> | Tue Jun 12 11:59:33 2012 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jun 12 14:44:04 2012 -0700 |
tree | 71fb0a053eca4f23efdca55f479554ba037ee987 | |
parent | eea6838b1206b0ac90110f1a6f58e101aa496e99 [diff] |
staging: comedi: propogate error code from comedi_alloc_subdevices comedi_alloc_subdevices can fail with -EINVAL or -ENOMEM. When it does fail make sure to pass the proper error code back. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbott@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>