diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-11-27 02:14:49 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-11-27 02:14:49 +0000 |
commit | 94db205a924e20ea836be9551f87653a03683e1b (patch) | |
tree | 7b9ca1048553942f3e1d613fe2020c9d01a8eff5 /sys | |
parent | ff5dbe675be62d2e3f746785ba58840b005050a9 (diff) |
zero attach args; return on missing properties will be removed
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pv/xen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pv/xen.c b/sys/dev/pv/xen.c index 0c6ad0a907a..cb008a4ae8c 100644 --- a/sys/dev/pv/xen.c +++ b/sys/dev/pv/xen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xen.c,v 1.98 2024/05/24 10:05:55 jsg Exp $ */ +/* $OpenBSD: xen.c,v 1.99 2024/11/27 02:14:48 jsg Exp $ */ /* * Copyright (c) 2015, 2016, 2017 Mike Belopuhov @@ -1355,6 +1355,7 @@ xen_attach_device(struct xen_softc *sc, struct xen_devlist *xdl, struct xen_device *xdv; unsigned long long res; + memset(&xa, 0, sizeof(xa)); xa.xa_dmat = &xen_bus_dma_tag; strlcpy(xa.xa_name, name, sizeof(xa.xa_name)); |