]> err.no Git - linux-2.6/commitdiff
[PATCH] IB/mthca: Fix memset size
authorRoland Dreier <roland@topspin.com>
Mon, 27 Jun 2005 21:36:42 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 27 Jun 2005 22:11:45 +0000 (15:11 -0700)
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>
drivers/infiniband/hw/mthca/mthca_provider.c

index 6d310258cafd3c30ea25b665abff930495869c38..f8e68b9db84ee3c9d30c449aac03704d2ad8397d 100644 (file)
@@ -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;