]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HID: debug: Check result of debugfs_create_dir() and debugfs_create_file()
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Fri, 4 Sep 2015 13:40:16 +0000 (19:40 +0600)
committerJiri Kosina <jkosina@suse.cz>
Wed, 23 Sep 2015 09:26:35 +0000 (11:26 +0200)
commit9c537bf6cad4782573d873674a267c7cdc842ac9
treef0598a382d348f9a2b24d7d8360def4f51809b2f
parent851328feb8c1d4130d3a0acb004e474168702d6d
HID: debug: Check result of debugfs_create_dir() and debugfs_create_file()

The debugfs_create_dir() and debugfs_create_file() functions may return -errno
if an error occurs. This patch adds a couple of checks of the result of the
debufs_create_dir() and debugfs_create_file() functions execution in the
hid_debug_register() and othre places.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-debug.c