staging: dgap: implement proper error handling in dgap_start()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 8 Mar 2014 21:01:34 +0000 (01:01 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 06:44:35 +0000 (22:44 -0800)
dgap_start() ignored errors in class_create() and device_create().
The patch implements proper error handling.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c

Simple merge