summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2007-09-17 13:58:10 +0000
committermglocker <mglocker@openbsd.org>2007-09-17 13:58:10 +0000
commit075a63025bdee1431991b811438cd5344b7b45fb (patch)
tree6ae5e60051d7f493864ef9a468fc602ec9b697be
parentimplement the output_muted member of audio_info_t as found in original (diff)
downloadwireguard-openbsd-075a63025bdee1431991b811438cd5344b7b45fb.tar.xz
wireguard-openbsd-075a63025bdee1431991b811438cd5344b7b45fb.zip
In case of IV load failure free ucode.
-rw-r--r--sys/dev/ic/bwi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c
index d614fa091bb..49b6c0c9979 100644
--- a/sys/dev/ic/bwi.c
+++ b/sys/dev/ic/bwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwi.c,v 1.35 2007/09/16 19:08:42 mglocker Exp $ */
+/* $OpenBSD: bwi.c,v 1.36 2007/09/17 13:58:10 mglocker Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -1781,7 +1781,8 @@ bwi_mac_fw_init(struct bwi_mac *mac)
else {
printf("%s: no suitable IV for MAC rev %d\n",
sc->sc_dev.dv_xname, mac->mac_rev);
- return (ENODEV);
+ error = ENODEV;
+ goto out;
}
snprintf(fwname, sizeof(fwname), "bwi_initval%02d.fw", idx);