summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2005-06-27 23:36:42 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 00:11:45 +0200
commita852092e8cb305595ff630dfc3e9b25966a98276 (patch)
tree691c33fa2d94909ef8f4075d1bff666a07593c46 /drivers/infiniband/hw
parent[PATCH] IB/mthca: Enable unreliable connected transport (diff)
downloadlinux-a852092e8cb305595ff630dfc3e9b25966a98276.tar.xz
linux-a852092e8cb305595ff630dfc3e9b25966a98276.zip
[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>
Diffstat (limited to 'drivers/infiniband/hw')
-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 6d310258cafd..f8e68b9db84e 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;