From 531ec7f7b8c43c7bf30b255f16eb29d1e7b31abc Mon Sep 17 00:00:00 2001 From: hselasky Date: Mon, 7 Aug 2017 13:07:58 +0000 Subject: [PATCH] MFC r321780: Make sure on-stack buffer is properly aligned. Sponsored by: Mellanox Technologies git-svn-id: svn://svn.freebsd.org/base/stable/9@322160 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/ofed/drivers/infiniband/hw/mlx4/mad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ofed/drivers/infiniband/hw/mlx4/mad.c b/sys/ofed/drivers/infiniband/hw/mlx4/mad.c index 80bfcb6f7..87288b189 100644 --- a/sys/ofed/drivers/infiniband/hw/mlx4/mad.c +++ b/sys/ofed/drivers/infiniband/hw/mlx4/mad.c @@ -963,7 +963,7 @@ static int iboe_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num, int err; u32 counter_index = dev->counters[port_num - 1] & 0xffff; u8 mode; - char counter_buf[MLX4_IF_STAT_SZ(1)]; + char counter_buf[MLX4_IF_STAT_SZ(1)] __aligned(8); union mlx4_counter *counter = (union mlx4_counter *) counter_buf; -- 2.42.0