]> git.baikalelectronics.ru Git - kernel.git/commit
USB: Add URB_FREE_BUFFER flag and the logic behind it
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 13 Jun 2007 06:02:11 +0000 (08:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:38 +0000 (16:34 -0700)
commit970e22f968d6e4175aacc6e9d3ff6cda49e95992
tree4d7da145c0fa47243b0f67b62fcdfaa4f53d184e
parentbdea97334042fe2c82b3a48f79bd9ab2279fa516
USB: Add URB_FREE_BUFFER flag and the logic behind it

USB: Add URB_FREE_BUFFER flag for freeing the transfer buffer

In some cases it is not needed that the driver keeps track of the
transfer buffer of an URB. It can be simply freed along with the
URB itself when the reference count goes down to zero. The new
flag URB_FREE_BUFFER enables this behavior.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/urb.c
include/linux/usb.h