From da2d4c833609fcb7677230414b25d652d6fefcff Mon Sep 17 00:00:00 2001 From: hselasky Date: Sun, 11 Jan 2015 13:59:25 +0000 Subject: [PATCH] MFC r276611: Make sure an error case exits unlocked. git-svn-id: svn://svn.freebsd.org/base/stable/10@276975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/usb/wlan/if_rsu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/wlan/if_rsu.c b/sys/dev/usb/wlan/if_rsu.c index 59565ee69..4ad6ab5ab 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); -- 2.45.0