Add missing NDIS_UNLOCK() in one of the failure cases in SIOCGPRIVATE_0.

This commit is contained in:
Bill Paul 2005-10-10 18:17:46 +00:00
parent 9a8147c586
commit c4095c0551
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151216

View File

@ -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;
}