summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-01-09 00:43:24 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-01-09 00:43:24 +0000
commit943e81ed4c37d5ef0bdd0fedfe58277b0bb5de1d (patch)
tree8c6095026e9c4b30c28f0fb49cbede826528d839 /sys/dev
parent37dd0b41c3ded545c96fa3206deaf823f257d0c9 (diff)
fix a panic in the locking stuff that was caused by a pasto. found by
Johan M:son Lindman.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/nviic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/nviic.c b/sys/dev/pci/nviic.c
index bd81b00d0d9..079eee4a741 100644
--- a/sys/dev/pci/nviic.c
+++ b/sys/dev/pci/nviic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nviic.c,v 1.1 2006/01/04 00:40:08 dlg Exp $ */
+/* $OpenBSD: nviic.c,v 1.2 2006/01/09 00:43:23 dlg Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -186,7 +186,7 @@ nviic_i2c_release_bus(void *arg, int flags)
if (cold || (flags & I2C_F_POLL))
return;
- lockmgr(&nc->nc_lock, LK_EXCLUSIVE, NULL);
+ lockmgr(&nc->nc_lock, LK_RELEASE, NULL);
}
int