summaryrefslogtreecommitdiff
path: root/sys/dev/tws
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2012-01-03 20:17:35 +0000
committerXin LI <delphij@FreeBSD.org>2012-01-03 20:17:35 +0000
commit3093cb15fbca9fd37932337775403030063cb824 (patch)
tree8d12c0239b9a934f46a1115a4bbbf7c810b2d3f1 /sys/dev/tws
parent4c995944af6f2ea7c7e612e98a304deedf7a84e5 (diff)
Notes
Diffstat (limited to 'sys/dev/tws')
-rw-r--r--sys/dev/tws/tws.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/tws/tws.c b/sys/dev/tws/tws.c
index 02f78a51b419..2a2384a0c464 100644
--- a/sys/dev/tws/tws.c
+++ b/sys/dev/tws/tws.c
@@ -685,6 +685,7 @@ tws_init_reqs(struct tws_softc *sc, u_int32_t dma_mem_size)
{
if (bus_dmamap_create(sc->data_tag, 0, &sc->reqs[i].dma_map)) {
/* log a ENOMEM failure msg here */
+ mtx_unlock(&sc->q_lock);
return(FAILURE);
}
sc->reqs[i].cmd_pkt = &cmd_buf[i];