Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2017 12:03:45 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r321780 - head/sys/dev/mlx4/mlx4_ib
Message-ID:  <201707311203.v6VC3jrX014104@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Jul 31 12:03:45 2017
New Revision: 321780
URL: https://svnweb.freebsd.org/changeset/base/321780

Log:
  Make sure on-stack buffer is properly aligned.
  
  Sponsored by:	Mellanox Technologies
  MFC after:	1 week

Modified:
  head/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c

Modified: head/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c
==============================================================================
--- head/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c	Mon Jul 31 11:04:35 2017	(r321779)
+++ head/sys/dev/mlx4/mlx4_ib/mlx4_ib_mad.c	Mon Jul 31 12:03:45 2017	(r321780)
@@ -983,7 +983,7 @@ static int iboe_process_mad(struct ib_device *ibdev, i
 	int err;
 	u32 counter_index = dev->counters[port_num - 1].counter_index & 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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707311203.v6VC3jrX014104>