From: Roland Dreier Date: Mon, 27 Jun 2005 21:36:42 +0000 (-0700) Subject: [PATCH] IB/mthca: Fix memset size X-Git-Tag: v2.6.13-rc1~51^2~21 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a852092e8cb305595ff630dfc3e9b25966a98276;p=linux-2.6-omap-h63xx.git [PATCH] IB/mthca: Fix memset size Fix memset to use sizeof *props instead of just sizeof props. Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c index 6d310258caf..f8e68b9db84 100644 --- a/drivers/infiniband/hw/mthca/mthca_provider.c +++ b/drivers/infiniband/hw/mthca/mthca_provider.c @@ -53,7 +53,7 @@ static int mthca_query_device(struct ib_device *ibdev, if (!in_mad || !out_mad) goto out; - memset(props, 0, sizeof props); + memset(props, 0, sizeof *props); props->fw_ver = mdev->fw_ver;