From 6186c641dec84c67010cbf21a27b583dffca7628 Mon Sep 17 00:00:00 2001 From: seanc Date: Thu, 11 Jul 2019 19:51:33 +0000 Subject: [PATCH] usr.sbin/bhyve: commit miss from r349918 Submitted by: markj Approved by: markj Differential Revision: https://reviews.freebsd.org/D20918 --- usr.sbin/bhyve/pci_fbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/pci_fbuf.c b/usr.sbin/bhyve/pci_fbuf.c index 78b118dfa08..0960c70a90b 100644 --- a/usr.sbin/bhyve/pci_fbuf.c +++ b/usr.sbin/bhyve/pci_fbuf.c @@ -225,12 +225,12 @@ pci_fbuf_read(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, static int pci_fbuf_parse_opts(struct pci_fbuf_softc *sc, char *opts) { - char *uopts, *xopts, *config; + char *uopts, *uoptsbak, *xopts, *config; char *tmpstr; int ret; ret = 0; - uopts = strdup(opts); + uoptsbak = uopts = strdup(opts); while ((xopts = strsep(&uopts, ",")) != NULL) { if (strcmp(xopts, "wait") == 0) { sc->rfb_wait = 1; -- 2.45.0