Author: hselasky
Date: Mon Aug  7 13:03:52 2017
New Revision: 322158
URL: https://svnweb.freebsd.org/changeset/base/322158

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

Modified:
  stable/11/sys/ofed/drivers/infiniband/hw/mlx4/mad.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ofed/drivers/infiniband/hw/mlx4/mad.c
==============================================================================
--- stable/11/sys/ofed/drivers/infiniband/hw/mlx4/mad.c Mon Aug  7 12:59:32 
2017        (r322157)
+++ stable/11/sys/ofed/drivers/infiniband/hw/mlx4/mad.c Mon Aug  7 13:03:52 
2017        (r322158)
@@ -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;
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to