|
@@ -1724,7 +1724,7 @@ static int scratchpad_alloc(struct xhci_hcd *xhci, gfp_t flags)
|
|
|
xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma);
|
|
|
for (i = 0; i < num_sp; i++) {
|
|
|
dma_addr_t dma;
|
|
|
- void *buf = dma_alloc_coherent(dev, xhci->page_size, &dma,
|
|
|
+ void *buf = dma_zalloc_coherent(dev, xhci->page_size, &dma,
|
|
|
flags);
|
|
|
if (!buf)
|
|
|
goto fail_sp4;
|