]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Take sizeof the correct pointer in call to memset()
authorDotan Barak <dotanb@dev.mellanox.co.il>
Sun, 15 Jul 2007 12:00:09 +0000 (15:00 +0300)
committerRoland Dreier <rolandd@cisco.com>
Wed, 18 Jul 2007 01:37:38 +0000 (18:37 -0700)
commit2b3308c8e244b88189ed0fb0fe66778d3d0a6997
treecd8d9a0218866a0172ee9e3e1ac85520d1438fe4
parent777a862ca91cc087a02346c4a59899b0533cc1d4
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 8c5447c0 ("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 <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c