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

Commit 3aba4d51 authored by Jhansi Konathala's avatar Jhansi Konathala Committed by Gerrit - the friendly Code Review server
Browse files

soc: msm_audio_ion : Fix error in msm_audio_ion



Add NULL check condition before use of pointer.

CRs-fixed: 2223256

Change-Id: If1ffdde8ff5e70ee05c0d1ea963b2bc6bf4cfe78
Signed-off-by: default avatarJhansi Konathala <cjkonat@codeaurora.org>
parent 021aa411
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2017, 2018 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -762,6 +762,8 @@ static int msm_audio_smmu_init(struct device *dev)
					msm_iommu_get_bus(dev),
					   MSM_AUDIO_ION_VA_START,
					   MSM_AUDIO_ION_VA_LEN);
	if (mapping == NULL)
		goto fail_attach;
	if (IS_ERR(mapping))
		return PTR_ERR(mapping);