aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2005-06-27 17:36:42 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 18:11:45 -0400
commita852092e8cb305595ff630dfc3e9b25966a98276 (patch)
tree691c33fa2d94909ef8f4075d1bff666a07593c46
parent9e6970b5e96c3281e26b7d2e4e1839f356d5f5ff (diff)
[PATCH] IB/mthca: Fix memset size
Fix memset to use sizeof *props instead of just sizeof props. Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/infiniband/hw/mthca/mthca_provider.c2
1 files changed, 1 insertions, 1 deletions
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,
53 if (!in_mad || !out_mad) 53 if (!in_mad || !out_mad)
54 goto out; 54 goto out;
55 55
56 memset(props, 0, sizeof props); 56 memset(props, 0, sizeof *props);
57 57
58 props->fw_ver = mdev->fw_ver; 58 props->fw_ver = mdev->fw_ver;
59 59