rsxx: fix missing unlock on error return in rsxx_eeh_remap_dmas()
authorJens Axboe <axboe@kernel.dk>
Sat, 16 Mar 2013 09:10:48 +0000 (10:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 16 Mar 2013 09:10:48 +0000 (10:10 +0100)
Spotted by Fenguan Wu's super build robot.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rsxx/dma.c

index 60d344d002ec10520a01ee41649ab7cea47a6280..d523e9c565788690420445e8b368a33d0d1f85db 100644 (file)
@@ -1059,6 +1059,7 @@ int rsxx_eeh_remap_dmas(struct rsxx_cardinfo *card)
                                        PCI_DMA_TODEVICE :
                                        PCI_DMA_FROMDEVICE);
                        if (!dma->dma_addr) {
+                               spin_unlock(&card->ctrl[i].queue_lock);
                                kmem_cache_free(rsxx_dma_pool, dma);
                                return -ENOMEM;
                        }