diff options
author | 2007-09-17 13:58:10 +0000 | |
---|---|---|
committer | 2007-09-17 13:58:10 +0000 | |
commit | 075a63025bdee1431991b811438cd5344b7b45fb (patch) | |
tree | 6ae5e60051d7f493864ef9a468fc602ec9b697be | |
parent | implement the output_muted member of audio_info_t as found in original (diff) | |
download | wireguard-openbsd-075a63025bdee1431991b811438cd5344b7b45fb.tar.xz wireguard-openbsd-075a63025bdee1431991b811438cd5344b7b45fb.zip |
In case of IV load failure free ucode.
-rw-r--r-- | sys/dev/ic/bwi.c | 5 |
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); |