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;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to