staging: dgrp: implement error handling in dgrp_create_class_sysfs_files()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 5 Apr 2013 21:14:23 +0000 (01:14 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 21:24:11 +0000 (14:24 -0700)
There is no any error handling in dgrp_create_class_sysfs_files().
The patch adds code to check return values and propagate them to dgrp_init_module().

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>

No differences found