summaryrefslogtreecommitdiffstats
path: root/sbin/ggate/ggatec
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2015-07-14 10:49:36 +0000
committerbrueffer <brueffer@FreeBSD.org>2015-07-14 10:49:36 +0000
commit5026cf8dae6b0bd58684c51641c5f9324bcd48f6 (patch)
treec21df2fe2cc0e5d27bbbec81724458bab6709ec4 /sbin/ggate/ggatec
parentd9ba778236d405be729406c571edc06bc11d8f09 (diff)
downloadFreeBSD-src-5026cf8dae6b0bd58684c51641c5f9324bcd48f6.zip
FreeBSD-src-5026cf8dae6b0bd58684c51641c5f9324bcd48f6.tar.gz
Unbreak ggatec and ggatel on i386 after r238119, which added two more
'struct g_gate_ctl_create' fields. While the behaviour was technically undefined on other architectures as well, on the reporter's amd64 systems the uninitialized bytes the kernel cares about were always zero so everything worked as expected. PR: 197309, 199559 Submitted by: ota@j.email.ne.jp, Fabian Keil Reviewed by: pjd MFC after: 1 week
Diffstat (limited to 'sbin/ggate/ggatec')
-rw-r--r--sbin/ggate/ggatec/ggatec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/ggate/ggatec/ggatec.c b/sbin/ggate/ggatec/ggatec.c
index 6f9263c..ea4f701 100644
--- a/sbin/ggate/ggatec/ggatec.c
+++ b/sbin/ggate/ggatec/ggatec.c
@@ -447,6 +447,7 @@ g_gatec_create(void)
/*
* Ok, got both sockets, time to create provider.
*/
+ memset(&ggioc, 0, sizeof(ggioc));
ggioc.gctl_version = G_GATE_VERSION;
ggioc.gctl_mediasize = mediasize;
ggioc.gctl_sectorsize = sectorsize;
OpenPOWER on IntegriCloud