]> err.no Git - linux-2.6/blobdiff - drivers/infiniband/hw/mthca/mthca_allocator.c
Merge branch 'devel'
[linux-2.6] / drivers / infiniband / hw / mthca / mthca_allocator.c
index f930e55b58fcd45ae947b6b29efc9d6efa87dd1c..a763067096182fe14d9502a2a5fdd6135bd6e580 100644 (file)
@@ -255,7 +255,7 @@ int mthca_buf_alloc(struct mthca_dev *dev, int size, int max_direct,
                        dma_list[i] = t;
                        pci_unmap_addr_set(&buf->page_list[i], mapping, t);
 
-                       memset(buf->page_list[i].buf, 0, PAGE_SIZE);
+                       clear_page(buf->page_list[i].buf);
                }
        }