diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c index 25895991dc52..1d4db4b19d76 100644 --- a/drivers/infiniband/hw/qib/qib_init.c +++ b/drivers/infiniband/hw/qib/qib_init.c | |||
@@ -1472,6 +1472,9 @@ int qib_setup_eagerbufs(struct qib_ctxtdata *rcd) | |||
1472 | dma_addr_t pa = rcd->rcvegrbuf_phys[chunk]; | 1472 | dma_addr_t pa = rcd->rcvegrbuf_phys[chunk]; |
1473 | unsigned i; | 1473 | unsigned i; |
1474 | 1474 | ||
1475 | /* clear for security and sanity on each use */ | ||
1476 | memset(rcd->rcvegrbuf[chunk], 0, size); | ||
1477 | |||
1475 | for (i = 0; e < egrcnt && i < egrperchunk; e++, i++) { | 1478 | for (i = 0; e < egrcnt && i < egrperchunk; e++, i++) { |
1476 | dd->f_put_tid(dd, e + egroff + | 1479 | dd->f_put_tid(dd, e + egroff + |
1477 | (u64 __iomem *) | 1480 | (u64 __iomem *) |