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

Commit 84a55559 authored by Gurram Pravalika's avatar Gurram Pravalika Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Fix for HFR120 crash while



closing video recording.

Error:
[   74.304009]  dma_buf_vunmap+0xa4/0xa8
[   74.306182]  msm_buf_mngr_contq_listdel+0x90/0x14c
[   74.310008]  msm_buf_mngr_subdev_ioctl+0x598/0x844.

Change-Id: I060bf7fccbbce11aa7bcfd6d3574db2078029d00
Signed-off-by: default avatarGurram Pravalika <gpravali@codeaurora.org>
parent 2d8289ca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2021, 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
@@ -282,7 +282,7 @@ static void msm_buf_mngr_contq_listdel(struct msm_buf_mngr_device *dev,
		cont_save, &dev->cont_qhead, entry) {
		if ((cont_bufs->sessid == session) &&
		(cont_bufs->strid == stream)) {
			if (cnt && unmap) {
			if (cnt == 1 && unmap) {
				/* dma_buf_vunmap ignored vaddr(2nd argument) */
				dma_buf_vunmap(cont_bufs->dmabuf,
					cont_bufs->paddr);