summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2012-08-15 21:31:45 +0200
committerJiri Kosina <jkosina@suse.cz>2012-08-15 21:37:09 +0200
commitbcb4a75bde3821cecb17a71d287abfd6ef9bd68d (patch)
treeac7c344f803ee7ce31f04ffb94ca133a02ea59eb /include
parentHID: add quirk for Freescale i.MX28 ROM recovery (diff)
downloadlinux-bcb4a75bde3821cecb17a71d287abfd6ef9bd68d.tar.xz
linux-bcb4a75bde3821cecb17a71d287abfd6ef9bd68d.zip
HID: hidraw: improve error handling in hidraw_init()
Several improvements in error handling: - do not report success if alloc_chrdev_region() failed - check for error code of cdev_add() - use unregister_chrdev_region() instead of unregister_chrdev() if class_create() failed Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions