diff options
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_allocator.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_eq.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_allocator.c b/drivers/infiniband/hw/mthca/mthca_allocator.c index f930e55b58fc..a76306709618 100644 --- a/drivers/infiniband/hw/mthca/mthca_allocator.c +++ b/drivers/infiniband/hw/mthca/mthca_allocator.c | |||
@@ -255,7 +255,7 @@ int mthca_buf_alloc(struct mthca_dev *dev, int size, int max_direct, | |||
255 | dma_list[i] = t; | 255 | dma_list[i] = t; |
256 | pci_unmap_addr_set(&buf->page_list[i], mapping, t); | 256 | pci_unmap_addr_set(&buf->page_list[i], mapping, t); |
257 | 257 | ||
258 | memset(buf->page_list[i].buf, 0, PAGE_SIZE); | 258 | clear_page(buf->page_list[i].buf); |
259 | } | 259 | } |
260 | } | 260 | } |
261 | 261 | ||
diff --git a/drivers/infiniband/hw/mthca/mthca_eq.c b/drivers/infiniband/hw/mthca/mthca_eq.c index 8ec9fa1ff9ea..8592b26dc4e1 100644 --- a/drivers/infiniband/hw/mthca/mthca_eq.c +++ b/drivers/infiniband/hw/mthca/mthca_eq.c | |||
@@ -522,7 +522,7 @@ static int mthca_create_eq(struct mthca_dev *dev, | |||
522 | dma_list[i] = t; | 522 | dma_list[i] = t; |
523 | pci_unmap_addr_set(&eq->page_list[i], mapping, t); | 523 | pci_unmap_addr_set(&eq->page_list[i], mapping, t); |
524 | 524 | ||
525 | memset(eq->page_list[i].buf, 0, PAGE_SIZE); | 525 | clear_page(eq->page_list[i].buf); |
526 | } | 526 | } |
527 | 527 | ||
528 | for (i = 0; i < eq->nent; ++i) | 528 | for (i = 0; i < eq->nent; ++i) |