[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>
This commit is contained in:
parent
9e6970b5e9
commit
a852092e8c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue