From 4b4257111c971458a73e21821d437bf130966cd9 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Thu, 25 Oct 2007 13:14:04 -0700 Subject: [PATCH] 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 --- drivers/usb/core/urb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2