aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-03-16 05:10:48 -0400
committerJens Axboe <axboe@kernel.dk>2013-03-16 05:10:48 -0400
commit351a2c6e7d265f97799ec7f6b1dde7fc7cb4b92d (patch)
tree351f16756606bdac4c960e723c772a849cdc73aa
parentc95246c3a2ac796cfa43e76200ede59cb4a1644f (diff)
rsxx: fix missing unlock on error return in rsxx_eeh_remap_dmas()
Spotted by Fenguan Wu's super build robot. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--drivers/block/rsxx/dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/rsxx/dma.c b/drivers/block/rsxx/dma.c
index 60d344d002ec..d523e9c56578 100644
--- a/drivers/block/rsxx/dma.c
+++ b/drivers/block/rsxx/dma.c
@@ -1059,6 +1059,7 @@ int rsxx_eeh_remap_dmas(struct rsxx_cardinfo *card)
1059 PCI_DMA_TODEVICE : 1059 PCI_DMA_TODEVICE :
1060 PCI_DMA_FROMDEVICE); 1060 PCI_DMA_FROMDEVICE);
1061 if (!dma->dma_addr) { 1061 if (!dma->dma_addr) {
1062 spin_unlock(&card->ctrl[i].queue_lock);
1062 kmem_cache_free(rsxx_dma_pool, dma); 1063 kmem_cache_free(rsxx_dma_pool, dma);
1063 return -ENOMEM; 1064 return -ENOMEM;
1064 } 1065 }