]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: sony: Fix a potential memory leak in sony_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 3 Sep 2023 16:04:00 +0000 (18:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 19:59:06 +0000 (21:59 +0200)
commitbb0707fde7492121917fd9ddb43829e96ec0bb9e
treeae43d0963f08947e3a82a8c0a2e7a3853c8f2301
parent8afbacf6191985f175b15bc625417d1e117b020a
HID: sony: Fix a potential memory leak in sony_probe()

[ Upstream commit e1cd4004cde7c9b694bbdd8def0e02288ee58c74 ]

If an error occurs after a successful usb_alloc_urb() call, usb_free_urb()
should be called.

Fixes: fb1a79a6b6e1 ("HID: sony: fix freeze when inserting ghlive ps3/wii dongles")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-sony.c