diff options
author | Jens Axboe <axboe@kernel.dk> | 2013-03-16 09:10:48 (GMT) |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-03-16 09:10:48 (GMT) |
commit | 351a2c6e7d265f97799ec7f6b1dde7fc7cb4b92d (patch) | |
tree | 351f16756606bdac4c960e723c772a849cdc73aa /drivers/block | |
parent | c95246c3a2ac796cfa43e76200ede59cb4a1644f (diff) | |
download | linux-351a2c6e7d265f97799ec7f6b1dde7fc7cb4b92d.tar.xz |
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')
-rw-r--r-- | drivers/block/rsxx/dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/rsxx/dma.c b/drivers/block/rsxx/dma.c index 60d344d..d523e9c 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; } |