Skip to content

Commit 5f3720a

Browse files
hoshinolinajannau
authored andcommitted
dmaengine: apple-sio: Fix chan freeing in error path
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent b84a708 commit 5f3720a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/dma/apple-sio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ static struct dma_async_tx_descriptor *sio_prep_dma_cyclic(
277277

278278
siotx->siodesc[i] = d = sio_alloc_desc(siochan->host);
279279
if (!d) {
280+
siotx->vd.tx.chan = &siochan->vc.chan;
280281
sio_tx_free(&siotx->vd);
281282
return NULL;
282283
}

0 commit comments

Comments
 (0)