diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-01-11 13:59:25 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-01-11 13:59:25 +0000 |
commit | 66c12db3df424c4159524f3fd6c8b136618a84be (patch) | |
tree | be35aeab3b091fd355263f85cb3f9a9fb086603d | |
parent | dd1bd8c59187bdd5b23cd4deaff30bd37228bdf9 (diff) | |
download | FreeBSD-src-66c12db3df424c4159524f3fd6c8b136618a84be.zip FreeBSD-src-66c12db3df424c4159524f3fd6c8b136618a84be.tar.gz |
MFC r276611:
Make sure an error case exits unlocked.
-rw-r--r-- | sys/dev/usb/wlan/if_rsu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/wlan/if_rsu.c b/sys/dev/usb/wlan/if_rsu.c index 59565ee..4ad6ab5 100644 --- a/sys/dev/usb/wlan/if_rsu.c +++ b/sys/dev/usb/wlan/if_rsu.c @@ -326,11 +326,11 @@ rsu_attach(device_t self) if (sc->cut != 3) sc->cut = (sc->cut >> 1) + 1; error = rsu_read_rom(sc); + RSU_UNLOCK(sc); if (error != 0) { device_printf(self, "could not read ROM\n"); goto fail_rom; } - RSU_UNLOCK(sc); IEEE80211_ADDR_COPY(sc->sc_bssid, &sc->rom[0x12]); device_printf(self, "MAC/BB RTL8712 cut %d\n", sc->cut); ifp = sc->sc_ifp = if_alloc(IFT_IEEE80211); |