Skip to content

Commit

Permalink
[PATCH] IB/mthca: Fix memset size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Dreier authored and Linus Torvalds committed Jun 27, 2005
1 parent 9e6970b commit a852092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/mthca/mthca_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a852092

Please sign in to comment.