]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: renesas_usbhs: Fix a resource leak in usbhs_pipe_malloc()
authorHaoxiang Li <haoxiang_li2024@163.com>
Thu, 4 Dec 2025 13:21:29 +0000 (21:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:14 +0000 (12:57 +0100)
commitfd00f88ef36bbd850cbd409b210fe86aa53a2746
tree06cae4b95728fcf84de84bd8217e61e3d320f98c
parent1f069425f4f089d3c92064f276e90cf8170df182
usb: renesas_usbhs: Fix a resource leak in usbhs_pipe_malloc()

commit 36cc7e09df9e43db21b46519b740145410dd9f4a upstream.

usbhsp_get_pipe() set pipe's flags to IS_USED. In error paths,
usbhsp_put_pipe() is required to clear pipe's flags to prevent
pipe exhaustion.

Fixes: f1407d5c6624 ("usb: renesas_usbhs: Add Renesas USBHS common code")
Cc: stable <stable@kernel.org>
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Link: https://patch.msgid.link/20251204132129.109234-1-haoxiang_li2024@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/renesas_usbhs/pipe.c