]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[hermon] Add missing __attribute__ (( packed ))
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Feb 2011 18:38:26 +0000 (18:38 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 17 Feb 2011 01:25:10 +0000 (01:25 +0000)
commite8c636fe75d6b797d2fe151f8534dea7bbc6d1c2
treee8799832b330cf1eff347d638959166e4ea588cd
parent0e878b30fe59041d3f86cf87d7a93d700dabfda6
[hermon] Add missing __attribute__ (( packed ))

On 64-bit builds, MLX_DECLARE_STRUCT() produces a structure that is
always a multiple of 64 bits long, causing the HCR structure to be
over-length by one dword.  This in turn causes hermon_cmd() to write
beyond the end of the HCR, which causes commands to fail.

Reported-by: Itay Gazit <itayg@mellanox.co.il>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/mlx_bitops.h