Re: [PATCH] drivers/hid: Fix debugfs_create_dir's error checking method for hid-core

2015-08-18 Thread Jiri Kosina
On Sat, 15 Aug 2015, Alexander Kuleshov wrote: > The debugfs_create_dir() function returns NULL if an error occurs. This patch > adds check of the result of the debufs_create_dir() execution in the > hid_debug_register(). > > Signed-off-by: Alexander Kuleshov > --- > drivers/hid/hid-core.c | 6

[PATCH] drivers/hid: Fix debugfs_create_dir's error checking method for hid-core

2015-08-14 Thread Alexander Kuleshov
The debugfs_create_dir() function returns NULL if an error occurs. This patch adds check of the result of the debufs_create_dir() execution in the hid_debug_register(). Signed-off-by: Alexander Kuleshov --- drivers/hid/hid-core.c | 6 -- drivers/hid/hid-debug.c | 3 +++ 2 files changed, 7 i