Commit a852092e authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds
Browse files

[PATCH] IB/mthca: Fix memset size



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

Signed-off-by: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9e6970b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;