diff options
author | Alexey Khoroshilov <[email protected]> | 2012-08-15 23:31:45 +0400 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2012-08-15 21:37:09 +0200 |
commit | bcb4a75bde3821cecb17a71d287abfd6ef9bd68d (patch) | |
tree | ac7c344f803ee7ce31f04ffb94ca133a02ea59eb /lib/mpi/mpi-inline.h | |
parent | 2843b673d03421e0e73cf061820d1db328f7c8eb (diff) |
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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions