Skip to content

Commit

Permalink
rsxx: fix missing unlock on error return in rsxx_eeh_remap_dmas()
Browse files Browse the repository at this point in the history
Spotted by Fenguan Wu's super build robot.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed Mar 16, 2013
1 parent c95246c commit 351a2c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/rsxx/dma.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 351a2c6

Please sign in to comment.