From: Oliver Neukum Date: Thu, 25 Oct 2007 20:14:04 +0000 (-0700) Subject: USB: add URB_FREE_BUFFER to permissible flags X-Git-Tag: v2.6.23.6~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b4257111c971458a73e21821d437bf130966cd9;p=thirdparty%2Fkernel%2Fstable.git 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 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 be630228461c0..3da7979134344 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)