svn commit: r350609 - head/sbin/nvmecontrol

Alexander Motin mav at FreeBSD.org
Mon Aug 5 19:30:29 UTC 2019


Author: mav
Date: Mon Aug  5 19:30:28 2019
New Revision: 350609
URL: https://svnweb.freebsd.org/changeset/base/350609

Log:
  Fix alignment issue r350599.
  
  MFC after:	10 days

Modified:
  head/sbin/nvmecontrol/resv.c

Modified: head/sbin/nvmecontrol/resv.c
==============================================================================
--- head/sbin/nvmecontrol/resv.c	Mon Aug  5 19:19:25 2019	(r350608)
+++ head/sbin/nvmecontrol/resv.c	Mon Aug  5 19:30:28 2019	(r350609)
@@ -351,7 +351,7 @@ resvreport(const struct cmd *f, int argc, char *argv[]
 	struct nvme_pt_command	pt;
 	struct nvme_resv_status	*s;
 	struct nvme_resv_status_ext *e;
-	uint8_t		data[4096];
+	uint8_t		data[4096] __aligned(4);
 	int		fd;
 	u_int		i, n;
 	uint32_t	nsid;


More information about the svn-src-head mailing list