kernel/tws: Add a missing lockmgr(...,LK_RELEASE).
authorSascha Wildner <saw@online.de>
Sun, 1 Jan 2012 01:48:53 +0000 (02:48 +0100)
committerSascha Wildner <saw@online.de>
Sun, 1 Jan 2012 01:48:53 +0000 (02:48 +0100)
sys/dev/raid/tws/tws.c

index 4d396f2..b7b04a5 100644 (file)
@@ -674,6 +674,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 */
+            lockmgr(&sc->q_lock, LK_RELEASE);
             return(FAILURE);
         }
         sc->reqs[i].cmd_pkt =  &cmd_buf[i];