Files
linux-stable-mirror/include/linux
Kuen-Han TsaiandGreg Kroah-Hartman 4f370f38cc usb: gadget: Introduce free_usb_request helper
[ Upstream commit 201c53c687 ]

Introduce the free_usb_request() function that frees both the request's
buffer and the request itself.

This function serves as the cleanup callback for DEFINE_FREE() to enable
automatic, scope-based cleanup for usb_request pointers.

Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
Link: https://lore.kernel.org/r/20250916-ready-v1-2-4997bf277548@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250916-ready-v1-2-4997bf277548@google.com
Stable-dep-of: 75a5b8d4dd ("usb: gadget: f_ncm: Refactor bind path to use __free()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-29 14:04:31 +01:00
..
2024-06-12 11:03:08 +02:00
2024-07-05 09:31:59 +02:00
2025-09-11 17:19:15 +02:00
2024-12-14 19:53:51 +01:00
2024-10-17 15:21:32 +02:00
2024-03-26 18:21:02 -04:00
2024-12-14 19:54:37 +01:00
2025-07-06 10:58:04 +02:00
2025-06-04 14:40:25 +02:00
2025-08-15 12:04:54 +02:00
2024-06-12 11:03:21 +02:00
2025-02-01 18:30:05 +01:00
2025-03-07 16:56:37 +01:00
2025-05-22 14:10:00 +02:00
2024-10-17 15:21:12 +02:00