From: Dotan Barak Date: Sun, 15 Jul 2007 12:00:09 +0000 (+0300) Subject: IB/mlx4: Take sizeof the correct pointer in call to memset() X-Git-Tag: v2.6.23-rc1~483^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fcea95a2a15444d5cc4bee174bb12233aa0a2aa;p=pandora-kernel.git IB/mlx4: Take sizeof the correct pointer in call to memset() When clearing the ib_ah_attr parameter in to_ib_ah_attr(), use sizeof *ib_ah_attr instead of sizeof *path. This is the same bug as was fixed for mthca in 99d4f22e ("IB/mthca: Use correct structure size in call to memset()"), but the code was cut and pasted into mlx4 before the fix was merged. Signed-off-by: Dotan Barak Signed-off-by: Roland Dreier --- Reading git-diff-tree failed