Re: [patch] usb: xhci-mem: use passed in GFP flags instead of GFP_KERNEL

2016-11-11 Thread Sebastian Andrzej Siewior
On 2016-11-10 22:33:17 [+0300], Dan Carpenter wrote: > We normally use the passed in gfp flags for allocations, it's just these > two which were missed. You seem to be right. xhci_mem_init() has only one caller with GFP_KERNEL as argument. You could unwind it. Acked-by: Sebastian Andrzej Siewior

[patch] usb: xhci-mem: use passed in GFP flags instead of GFP_KERNEL

2016-11-10 Thread Dan Carpenter
We normally use the passed in gfp flags for allocations, it's just these two which were missed. Fixes: 22d45f01a836 ("usb/xhci: replace pci_*_consistent() with dma_*_coherent()") Signed-off-by: Dan Carpenter --- >From static analysis. Not tested. diff --git a/drivers/usb/host/xhci-mem.c b/driv