diff options
-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 0f2aaed..9b864ac 100644 --- a/sys/dev/if_ndis/if_ndis.c +++ b/sys/dev/if_ndis/if_ndis.c @@ -2730,8 +2730,10 @@ ndis_ioctl(ifp, command, data) break; } error = copyin(ifr->ifr_data, &evt, sizeof(evt)); - if (error) + if (error) { + NDIS_UNLOCK(sc); break; + } if (evt.ne_len < sc->ndis_evt[sc->ndis_evtcidx].ne_len) { error = ENOSPC; NDIS_UNLOCK(sc); |