Merge "ASoC: msm: unmap and free dma memory if smmu map failed"

此提交包含在:
qctecmdr
2020-03-25 09:38:22 -07:00
提交者 Gerrit - the friendly Code Review server
當前提交 7b0c66d071

查看文件

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
*/
#include <linux/init.h>
@@ -562,6 +562,7 @@ static int msm_audio_ion_map_buf(void *handle, dma_addr_t *paddr,
if (rc) {
pr_err("%s: failed to do smmu map, err = %d\n",
__func__, rc);
msm_audio_dma_buf_unmap((struct dma_buf *) handle);
goto err;
}
}