diff options
author | Oliver Neukum <oliver@neukum.org> | 2007-10-25 13:14:04 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-16 09:30:22 -0800 |
commit | 4b4257111c971458a73e21821d437bf130966cd9 (patch) | |
tree | 0c2f841debbab0a65f735f0ff3eb6580044763f3 | |
parent | 34f84ffa2b3fa5af7e2cd27d0569ded38786396a (diff) | |
download | lwn-4b4257111c971458a73e21821d437bf130966cd9.tar.gz lwn-4b4257111c971458a73e21821d437bf130966cd9.zip |
USB: add URB_FREE_BUFFER to permissible flags
patch 0b28baaf74ca04be2e0cc4d4dd2bbc801697f744 in mainline.
URB_FREE_BUFFER needs to be allowed in the sanity checks to use drivers that
use that flag.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/usb/core/urb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c index be630228461c..3da797913434 100644 --- a/drivers/usb/core/urb.c +++ b/drivers/usb/core/urb.c @@ -358,7 +358,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags) /* enforce simple/standard policy */ allowed = (URB_NO_TRANSFER_DMA_MAP | URB_NO_SETUP_DMA_MAP | - URB_NO_INTERRUPT); + URB_NO_INTERRUPT | URB_FREE_BUFFER); switch (temp) { case PIPE_BULK: if (is_out) |