Commit 4b425711 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

USB: add URB_FREE_BUFFER to permissible flags

patch 0b28baaf in mainline.

URB_FREE_BUFFER needs to be allowed in the sanity checks to use drivers that
use that flag.
Signed-off-by: default avatarOliver Neukum <oneukum@suse.de>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 34f84ffa
...@@ -358,7 +358,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags) ...@@ -358,7 +358,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
/* enforce simple/standard policy */ /* enforce simple/standard policy */
allowed = (URB_NO_TRANSFER_DMA_MAP | URB_NO_SETUP_DMA_MAP | allowed = (URB_NO_TRANSFER_DMA_MAP | URB_NO_SETUP_DMA_MAP |
URB_NO_INTERRUPT); URB_NO_INTERRUPT | URB_FREE_BUFFER);
switch (temp) { switch (temp) {
case PIPE_BULK: case PIPE_BULK:
if (is_out) if (is_out)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment