aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/e1000
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2015-07-16 16:32:57 +0000
committerSean Bruno <sbruno@FreeBSD.org>2015-07-16 16:32:57 +0000
commitf46fb03de73d4a69d4a6cf82e4f1bbd4562008b6 (patch)
tree5bd15409144a9c3fcfd10b67a83f73f0ee7c4926 /sys/dev/e1000
parenta529288d65f247e4d7d0861240910455782775f0 (diff)
downloadsrc-f46fb03de73d4a69d4a6cf82e4f1bbd4562008b6.tar.gz
src-f46fb03de73d4a69d4a6cf82e4f1bbd4562008b6.zip
Notes
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r--sys/dev/e1000/if_em.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
index 52b03d65ca50..d080168dedbb 100644
--- a/sys/dev/e1000/if_em.c
+++ b/sys/dev/e1000/if_em.c
@@ -5998,7 +5998,9 @@ DB_COMMAND(em_reset_dev, em_ddb_reset_dev)
dev = devclass_get_device(dc, index);
if (device_get_driver(dev) == &em_driver) {
struct adapter *adapter = device_get_softc(dev);
+ EM_CORE_LOCK(adapter);
em_init_locked(adapter);
+ EM_CORE_UNLOCK(adapter);
}
}
}