Add missing NDIS_UNLOCK() in one of the failure cases in SIOCGPRIVATE_0.
This commit is contained in:
parent
9a8147c586
commit
c4095c0551
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151216
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user