HID: hidraw: fix improper mutex release
authorYonghua Zheng <younghua.zheng@gmail.com>
Tue, 30 Jul 2013 06:16:10 +0000 (14:16 +0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 31 Jul 2013 17:48:55 +0000 (19:48 +0200)
Mutex can not be released unless all hid_device members are properly
initialized. Otherwise it would result in a race condition that can
cause NULL pointer kernel panic issue in hidraw_open where it uses
uninitialized 'list' member in list_add_tail().

Signed-off-by: Yonghua Zheng <younghua.zheng@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

No differences found