staging/xillybus: Handle OOM in xillybus_init()
authorRichard Weinberger <richard@nod.at>
Tue, 18 Mar 2014 23:07:05 +0000 (00:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 23:22:27 +0000 (16:22 -0700)
commit3e67dee2f6ae7096802a49a16c79fc6adda3a540
tree9305c78287792254c08c8c7c14a024278960db69
parentb5f87cf913e6005e3d41db01ffa6d71c292271d9
staging/xillybus: Handle OOM in xillybus_init()

alloc_workqueue() can fail and returns NULL in case of
OOM.
Handle this case and undo class_create().

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xillybus/xillybus_core.c