[PATCH 08/14] IB/mthca: Fix memset size

From: Roland Dreier
Date: Thu Jun 23 2005 - 23:23:42 EST


Fix memset to use sizeof *props instead of just sizeof props.

Signed-off-by: Roland Dreier <roland@xxxxxxxxxxx>

---

linux.git/drivers/infiniband/hw/mthca/mthca_provider.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)



--- linux.git.orig/drivers/infiniband/hw/mthca/mthca_provider.c 2005-06-23 13:03:02.629547920 -0700
+++ linux.git/drivers/infiniband/hw/mthca/mthca_provider.c 2005-06-23 13:03:06.413728929 -0700
@@ -53,7 +53,7 @@ static int mthca_query_device(struct ib_
if (!in_mad || !out_mad)
goto out;

- memset(props, 0, sizeof props);
+ memset(props, 0, sizeof *props);

props->fw_ver = mdev->fw_ver;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/