summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-05-29 01:48:06 +0000
committerkevlo <kevlo@FreeBSD.org>2012-05-29 01:48:06 +0000
commit07ebfe1b9c18245d771125096d6654ee06f14c21 (patch)
treeab9b314dc9e2edd5a771820aeac2cbe20228150c /sys/boot/i386
parent40701fe3e34fea8f946ae14377ff7b45eb936427 (diff)
downloadFreeBSD-src-07ebfe1b9c18245d771125096d6654ee06f14c21.zip
FreeBSD-src-07ebfe1b9c18245d771125096d6654ee06f14c21.tar.gz
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/libi386/biospnp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/i386/libi386/biospnp.c b/sys/boot/i386/libi386/biospnp.c
index 8573e85..30e55fc 100644
--- a/sys/boot/i386/libi386/biospnp.c
+++ b/sys/boot/i386/libi386/biospnp.c
@@ -276,6 +276,7 @@ biospnp_call(int func, const char *fmt, ...)
break;
}
}
+ va_end(ap);
/* BIOS segment last */
*(u_int16_t *)argp = pnp_Icheck->pnp_rmds;
OpenPOWER on IntegriCloud