summaryrefslogtreecommitdiffstats
path: root/drivers/block/rsxx
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-03-16 10:10:48 +0100
committerJens Axboe <axboe@kernel.dk>2013-03-16 10:10:48 +0100
commit351a2c6e7d265f97799ec7f6b1dde7fc7cb4b92d (patch)
tree351f16756606bdac4c960e723c772a849cdc73aa /drivers/block/rsxx
parentc95246c3a2ac796cfa43e76200ede59cb4a1644f (diff)
downloadlinux-351a2c6e7d265f97799ec7f6b1dde7fc7cb4b92d.tar.gz
linux-351a2c6e7d265f97799ec7f6b1dde7fc7cb4b92d.tar.bz2
linux-351a2c6e7d265f97799ec7f6b1dde7fc7cb4b92d.zip
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>
Diffstat (limited to 'drivers/block/rsxx')
-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)
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;
}