summaryrefslogtreecommitdiff
path: root/sys/dev/an
diff options
context:
space:
mode:
authorTai-hwa Liang <avatar@FreeBSD.org>2007-08-07 12:26:19 +0000
committerTai-hwa Liang <avatar@FreeBSD.org>2007-08-07 12:26:19 +0000
commit07b6a9bed88c1fbc5ba03c7e3410f97f6e0b4647 (patch)
treedd036ee791b2259edb19af41d17d45ebe376e308 /sys/dev/an
parenta4e6807c49239dc9b3b1c7650943b050c08a1ee3 (diff)
Notes
Diffstat (limited to 'sys/dev/an')
-rw-r--r--sys/dev/an/if_an.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c
index 9ec7567a5af5..372fcb410a2b 100644
--- a/sys/dev/an/if_an.c
+++ b/sys/dev/an/if_an.c
@@ -1065,8 +1065,10 @@ an_rxeof(struct an_softc *sc)
rx_frame.an_rsvd0);
#endif
#endif
+ AN_UNLOCK(sc);
(*ifp->if_input)(ifp, m);
-
+ AN_LOCK(sc);
+
an_rx_desc.an_valid = 1;
an_rx_desc.an_len = AN_RX_BUFFER_SIZE;
an_rx_desc.an_done = 0;