diff options
author | Kuen-Han Tsai <khtsai@google.com> | 2025-09-16 16:21:33 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-17 12:44:53 +0200 |
commit | 201c53c687f2b55a7cc6d9f4000af4797860174b (patch) | |
tree | b22ab3c8f1f90eba19a5c29576da3a7b84069573 /lib/xarray.c | |
parent | bfb1d99d969fe3b892db30848aeebfa19d21f57f (diff) |
usb: gadget: Introduce free_usb_request helper
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
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions