Skip to content
Commit 8e73f43b authored by Hillf Danton's avatar Hillf Danton Committed by Greg Kroah-Hartman
Browse files

HID: hiddev: do cleanup in failure of opening a device

commit 6d4472d7

 upstream.

Undo what we did for opening before releasing the memory slice.

Reported-by: default avatarsyzbot <syzbot+62a1e04fd3ec2abf099e@syzkaller.appspotmail.com>
Cc: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: default avatarHillf Danton <hdanton@sina.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 76285c83
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment