Skip to content

Commit

Permalink
dmaengine: apple-sio: Fix chan freeing in error path
Browse files Browse the repository at this point in the history
Signed-off-by: Asahi Lina <[email protected]>
  • Loading branch information
asahilina authored and jannau committed Jun 15, 2024
1 parent c040940 commit a226fbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/apple-sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ static struct dma_async_tx_descriptor *sio_prep_dma_cyclic(

siotx->siodesc[i] = d = sio_alloc_desc(siochan->host);
if (!d) {
siotx->vd.tx.chan = &siochan->vc.chan;
sio_tx_free(&siotx->vd);
return NULL;
}
Expand Down

0 comments on commit a226fbf

Please sign in to comment.