diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-04-04 17:37:35 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-04-04 17:37:35 +0000 |
| commit | a877d4a4e98422694dc99271f12b2cc75cf42f45 (patch) | |
| tree | 370e4b2177066d6f17709ce36789a0a36ae34b94 | |
| parent | 15785fbe8116dc90b221ddb865f9e368ebacc97c (diff) | |
Notes
| -rw-r--r-- | sys/dev/ieee488/upd7210.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ieee488/upd7210.c b/sys/dev/ieee488/upd7210.c index d952bc2fa739..e4b50ace490a 100644 --- a/sys/dev/ieee488/upd7210.c +++ b/sys/dev/ieee488/upd7210.c @@ -177,8 +177,10 @@ gpib_l_open(struct cdev *dev, int oflags, int devtype, struct thread *td) u = dev->si_drv1; mtx_lock(&u->mutex); - if (u->busy) + if (u->busy) { + mtx_unlock(&u->mutex); return (EBUSY); + } u->busy = 1; u->irq = gpib_l_irq; mtx_unlock(&u->mutex); |
