diff options
| author | Michael Grzeschik <mgr@kernel.org> | 2026-09-22 00:25:58 +0200 |
|---|---|---|
| committer | Dominique Martinet <asmadeus@codewreck.org> | 2026-09-22 08:11:44 +0000 |
| commit | 5f9807270c7bda8f86b312ed1a8acd7716600555 (patch) | |
| tree | ee5bc19b38b6f485172edbf6a1b62d9a3fc9d366 /scripts/basic/split-include.c | |
| parent | cd1988cf723c2eae87112b198bf90b0aebfeaf31 (diff) | |
| download | linux-5f9807270c7bda8f86b312ed1a8acd7716600555.tar.gz linux-5f9807270c7bda8f86b312ed1a8acd7716600555.zip | |
net/9p/usbg: fix out_req buffer leak in disable_usb9pfs
usb9pfs->out_req is allocated with alloc_ep_req(), which also
allocates the request's data buffer (req->buf). disable_usb9pfs()
frees it with plain usb_ep_free_request(), which only frees the
usb_request structure itself and leaks req->buf on every close.
Use free_ep_req() instead, matching the allocator, as documented by
its own comment ("Requests allocated via alloc_ep_req() *must* be
freed by free_ep_req()").
Fixes: a3be076dc174 ("net/9p/usbg: Add new usb gadget function transport")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Michael Grzeschik <mgr@kernel.org>
Message-ID: <20260922-usb9pfsfixes-v1-5-9d8dcc52904c@kernel.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
