Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 351a2c6e authored by Jens Axboe's avatar Jens Axboe
Browse files

rsxx: fix missing unlock on error return in rsxx_eeh_remap_dmas()



Spotted by Fenguan Wu's super build robot.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c95246c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
			}