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

Commit 1e0f8864 authored by Han Lu's avatar Han Lu Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: qdsp6v2: fix issue of uninitialized variable



Fix issue that the variable paddr of type ion_phy_addr_t be used
without initialization in a few files

Change-Id: Idfa17595e9ef24640c40e573b9fbc74d14570fc5
Signed-off-by: default avatarHan Lu <hanlu@codeaurora.org>
parent 97a89a8b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1514,7 +1514,7 @@ static int msm_compr_configure_dsp_for_capture(struct snd_compr_stream *cstream)

static int msm_compr_map_ion_fd(struct msm_compr_audio *prtd, int fd)
{
	ion_phys_addr_t paddr;
	ion_phys_addr_t paddr = 0;
	size_t pa_len = 0;
	int ret = 0;

@@ -1544,7 +1544,7 @@ done:

static int msm_compr_unmap_ion_fd(struct msm_compr_audio *prtd)
{
	ion_phys_addr_t paddr;
	ion_phys_addr_t paddr = 0;
	size_t pa_len = 0;
	int ret = 0;

@@ -1759,7 +1759,7 @@ static int msm_compr_playback_free(struct snd_compr_stream *cstream)
	int dir = IN, ret = 0, stream_id;
	unsigned long flags;
	uint32_t stream_index;
	ion_phys_addr_t paddr;
	ion_phys_addr_t paddr = 0;
	size_t pa_len = 0;

	pr_debug("%s\n", __func__);
+3 −3
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ static void populate_codec_list(struct msm_transcode_loopback *trans,
static int msm_transcode_map_ion_fd(struct msm_transcode_loopback *trans,
				    int fd)
{
	ion_phys_addr_t paddr;
	ion_phys_addr_t paddr = 0;
	size_t pa_len = 0;
	int ret = 0;

@@ -229,7 +229,7 @@ done:

static int msm_transcode_unmap_ion_fd(struct msm_transcode_loopback *trans)
{
	ion_phys_addr_t paddr;
	ion_phys_addr_t paddr = 0;
	size_t pa_len = 0;
	int ret = 0;

@@ -359,7 +359,7 @@ static int msm_transcode_loopback_free(struct snd_compr_stream *cstream)
	struct trans_loopback_pdata *pdata = snd_soc_platform_get_drvdata(
								rtd->platform);
	int ret = 0;
	ion_phys_addr_t paddr;
	ion_phys_addr_t paddr = 0;
	size_t pa_len = 0;

	mutex_lock(&trans->lock);
+1 −1
Original line number Diff line number Diff line
@@ -7742,7 +7742,7 @@ fail_cmd:
int q6asm_audio_map_shm_fd(struct audio_client *ac, struct ion_client **client,
			struct ion_handle **handle, int fd)
{
	ion_phys_addr_t paddr;
	ion_phys_addr_t paddr = 0;
	size_t pa_len = 0;
	int ret;
	int sz = 0;