Loading drivers/media/platform/msm/camera/cam_req_mgr/cam_mem_mgr.c +11 −2 Original line number Diff line number Diff line Loading @@ -185,6 +185,8 @@ int cam_mem_get_io_buf(int32_t buf_handle, int32_t mmu_handle, { int rc = 0, idx; *len_ptr = 0; idx = CAM_MEM_MGR_GET_HDL_IDX(buf_handle); if (idx >= CAM_MEM_BUFQ_MAX || idx <= 0) return -EINVAL; Loading @@ -208,9 +210,16 @@ int cam_mem_get_io_buf(int32_t buf_handle, int32_t mmu_handle, tbl.bufq[idx].fd, iova_ptr, len_ptr); if (rc < 0) CAM_ERR(CAM_CRM, "fail to get buf hdl :%d", buf_handle); if (rc) { CAM_ERR(CAM_CRM, "fail to map buf_hdl:0x%x, mmu_hdl: 0x%x for fd:%d", buf_handle, mmu_handle, tbl.bufq[idx].fd); goto handle_mismatch; } CAM_DBG(CAM_CRM, "handle:0x%x fd:%d iova_ptr:%pK len_ptr:%llu", mmu_handle, tbl.bufq[idx].fd, iova_ptr, *len_ptr); handle_mismatch: mutex_unlock(&tbl.bufq[idx].q_lock); return rc; Loading drivers/media/platform/msm/camera/cam_smmu/cam_smmu_api.c +1 −1 Original line number Diff line number Diff line Loading @@ -1475,7 +1475,7 @@ static int cam_smmu_map_buffer_validate(struct dma_buf *buf, } *paddr_ptr = sg_dma_address(table->sgl); *len_ptr = (size_t)sg_dma_len(table->sgl); *len_ptr = (size_t)buf->size; } else { CAM_ERR(CAM_SMMU, "Error: Wrong region id passed"); rc = -EINVAL; Loading Loading
drivers/media/platform/msm/camera/cam_req_mgr/cam_mem_mgr.c +11 −2 Original line number Diff line number Diff line Loading @@ -185,6 +185,8 @@ int cam_mem_get_io_buf(int32_t buf_handle, int32_t mmu_handle, { int rc = 0, idx; *len_ptr = 0; idx = CAM_MEM_MGR_GET_HDL_IDX(buf_handle); if (idx >= CAM_MEM_BUFQ_MAX || idx <= 0) return -EINVAL; Loading @@ -208,9 +210,16 @@ int cam_mem_get_io_buf(int32_t buf_handle, int32_t mmu_handle, tbl.bufq[idx].fd, iova_ptr, len_ptr); if (rc < 0) CAM_ERR(CAM_CRM, "fail to get buf hdl :%d", buf_handle); if (rc) { CAM_ERR(CAM_CRM, "fail to map buf_hdl:0x%x, mmu_hdl: 0x%x for fd:%d", buf_handle, mmu_handle, tbl.bufq[idx].fd); goto handle_mismatch; } CAM_DBG(CAM_CRM, "handle:0x%x fd:%d iova_ptr:%pK len_ptr:%llu", mmu_handle, tbl.bufq[idx].fd, iova_ptr, *len_ptr); handle_mismatch: mutex_unlock(&tbl.bufq[idx].q_lock); return rc; Loading
drivers/media/platform/msm/camera/cam_smmu/cam_smmu_api.c +1 −1 Original line number Diff line number Diff line Loading @@ -1475,7 +1475,7 @@ static int cam_smmu_map_buffer_validate(struct dma_buf *buf, } *paddr_ptr = sg_dma_address(table->sgl); *len_ptr = (size_t)sg_dma_len(table->sgl); *len_ptr = (size_t)buf->size; } else { CAM_ERR(CAM_SMMU, "Error: Wrong region id passed"); rc = -EINVAL; Loading