diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2007-09-17 13:58:11 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2007-09-17 13:58:11 +0000 |
commit | af3611d89cc7a5e33b86e31adea014a525f911ab (patch) | |
tree | 4d797924c8be543a78d1fba6801b24d980b986f9 /sys/dev/ic | |
parent | c9a87457c67eeebe2671076ee823916738154936 (diff) |
In case of IV load failure free ucode.
Diffstat (limited to 'sys/dev/ic')
-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); |