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

Commit f7d9b4db authored by Gjorgji Rosikopulos's avatar Gjorgji Rosikopulos Committed by Gerrit - the friendly Code Review server
Browse files

msm: jpeg: fix get iommu context error handling



Get iommu context can return error pointer.

Change-Id: Icee672a8f2ac2e176a7bb94b841bb3470d4515ab
Signed-off-by: default avatarGjorgji Rosikopulos <grosik@codeaurora.org>
parent 0f7d8a53
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1542,7 +1542,7 @@ int __msm_jpeg_init(struct msm_jpeg_device *pgmn_dev)
		JPEG_DBG("%s:%d] name %s", __func__, __LINE__, iommu_name[j]);
		JPEG_DBG("%s:%d] name %s", __func__, __LINE__, iommu_name[j]);
		JPEG_DBG("%s:%d] ctx 0x%lx", __func__, __LINE__,
		JPEG_DBG("%s:%d] ctx 0x%lx", __func__, __LINE__,
			(unsigned long)pgmn_dev->iommu_ctx_arr[i]);
			(unsigned long)pgmn_dev->iommu_ctx_arr[i]);
		if (!pgmn_dev->iommu_ctx_arr[i]) {
		if (IS_ERR_OR_NULL(pgmn_dev->iommu_ctx_arr[i])) {
			JPEG_PR_ERR("%s: No iommu fw context found\n",
			JPEG_PR_ERR("%s: No iommu fw context found\n",
					__func__);
					__func__);
			goto error;
			goto error;