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)
commit7e1389a9e622a421e85e8611c76bd9142bf4bff1
tree784857c59a2b0f28d14f3364f31bb27a5ab9aca4
parent70e90fb57f517dca891c737f8120389af71baee0
staging: dgrp: implement error handling in dgrp_create_class_sysfs_files()

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>
drivers/staging/dgrp/dgrp_common.h
drivers/staging/dgrp/dgrp_driver.c
drivers/staging/dgrp/dgrp_sysfs.c