|
@@ -218,13 +218,11 @@ static int cio2_fbpt_init(struct cio2_device *cio2, struct cio2_queue *q)
|
|
|
{
|
|
|
struct device *dev = &cio2->pci_dev->dev;
|
|
|
|
|
|
- q->fbpt = dma_alloc_coherent(dev, CIO2_FBPT_SIZE, &q->fbpt_bus_addr,
|
|
|
- GFP_KERNEL);
|
|
|
+ q->fbpt = dma_zalloc_coherent(dev, CIO2_FBPT_SIZE, &q->fbpt_bus_addr,
|
|
|
+ GFP_KERNEL);
|
|
|
if (!q->fbpt)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
- memset(q->fbpt, 0, CIO2_FBPT_SIZE);
|
|
|
-
|
|
|
return 0;
|
|
|
}
|
|
|
|