Regards, Steve Newberger QLogic Corporation Support@QLogic.com Please visit our web @ http://support.qlogic.com/ ---- Original Message ---- From: shani.moideen@wipro.com Sent: 17-Jun-2007 22:33:56 To: support@pathscale.com Cc: openib-general@openib.org; kernel-janitors@lists.osdl.org Subject: [KJ PATCH] Replacing memset(<addr>,0,PAGE_SIZE) with clear_page(<addr>) in drivers/infiniband/hw/ipath/ipath_driver.c Replacing memset(,0,PAGE_SIZE) with clear_page() in drivers/infiniband/hw/ipath/ipath_driver.c Signed-off-by: Shani Moideen ---- diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c index e3a2232..417e3ca 100644 --- a/drivers/infiniband/hw/ipath/ipath_driver.c +++ b/drivers/infiniband/hw/ipath/ipath_driver.c @@ -1509,7 +1509,7 @@ int ipath_create_rcvhdrq(struct ipath_devdata *dd, /* clear for security and sanity on each use */ memset(pd->port_rcvhdrq, 0, pd->port_rcvhdrq_size); - memset(pd->port_rcvhdrtail_kvaddr, 0, PAGE_SIZE); + clear_page(pd->port_rcvhdrtail_kvaddr); /* * tell chip each time we init it, even if we are re-using previous -- Shani The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com