From: Rabin Vincent Date: Sun, 9 Nov 2008 06:10:30 +0000 (+0530) Subject: USB: mention URB_FREE_BUFFER in usb_free_urb documentation X-Git-Tag: v2.6.28-rc5~16^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2870fde780bbdf6442e9efe7ca5fc11bcdd2a09a;p=linux-2.6-omap-h63xx.git 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: Rabin Vincent Acked-by: Marcel Holtmann Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c index 4342bd9c3bb..1f68af9db3f 100644 --- a/drivers/usb/core/urb.c +++ b/drivers/usb/core/urb.c @@ -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 * 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 - * done elsewhere. + * Note: The transfer buffer associated with the urb is not freed unless the + * URB_FREE_BUFFER transfer flag is set. */ void usb_free_urb(struct urb *urb) {