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

Commit fad9365b authored by Oleg Matcovschi's avatar Oleg Matcovschi Committed by Liam Girdwood
Browse files

ASoC: omap-pcm: Free dma buffers in case of error.

parent 1a38336b
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -401,6 +401,10 @@ static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
	}
	}


out:
out:
	/* free preallocated buffers in case of error */
	if (ret)
		omap_pcm_free_dma_buffers(pcm);

	return ret;
	return ret;
}
}