diff options
author | wpaul <wpaul@FreeBSD.org> | 2005-10-10 18:17:46 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2005-10-10 18:17:46 +0000 |
commit | 81da4ba06055e64e721ee2f4b851b6a3bc231557 (patch) | |
tree | ebfc8b68cac03f66c6a7011dbb9e1db6195d091f | |
parent | 252f12692eefb83645de7b416025d5f9b6a28eb6 (diff) | |
download | FreeBSD-src-81da4ba06055e64e721ee2f4b851b6a3bc231557.zip FreeBSD-src-81da4ba06055e64e721ee2f4b851b6a3bc231557.tar.gz |
Add missing NDIS_UNLOCK() in one of the failure cases in SIOCGPRIVATE_0.
-rw-r--r-- | sys/dev/if_ndis/if_ndis.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c index 3e67c52..0f2aaed 100644 --- a/sys/dev/if_ndis/if_ndis.c +++ b/sys/dev/if_ndis/if_ndis.c @@ -2747,8 +2747,10 @@ ndis_ioctl(ifp, command, data) error = copyout(sc->ndis_evt[sc->ndis_evtcidx].ne_buf, ifr->ifr_data + (sizeof(uint32_t) * 2), sc->ndis_evt[sc->ndis_evtcidx].ne_len); - if (error) + if (error) { + NDIS_UNLOCK(sc); break; + } free(sc->ndis_evt[sc->ndis_evtcidx].ne_buf, M_TEMP); sc->ndis_evt[sc->ndis_evtcidx].ne_buf = NULL; } |