Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2870fde7 authored by Rabin Vincent's avatar Rabin Vincent Committed by Greg Kroah-Hartman
Browse files

USB: mention URB_FREE_BUFFER in usb_free_urb documentation



The usb_free_urb comment says that the transfer buffer will not be
freed, but this is not the case when URB_FREE_BUFFER is set.

Signed-off-by: default avatarRabin Vincent <rabin@rab.in>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c6206faa
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -85,8 +85,8 @@ EXPORT_SYMBOL_GPL(usb_alloc_urb);
 * Must be called when a user of a urb is finished with it.  When the last user
 * Must be called when a user of a urb is finished with it.  When the last user
 * of the urb calls this function, the memory of the urb is freed.
 * of the urb calls this function, the memory of the urb is freed.
 *
 *
 * Note: The transfer buffer associated with the urb is not freed, that must be
 * Note: The transfer buffer associated with the urb is not freed unless the
 * done elsewhere.
 * URB_FREE_BUFFER transfer flag is set.
 */
 */
void usb_free_urb(struct urb *urb)
void usb_free_urb(struct urb *urb)
{
{