summaryrefslogtreecommitdiff
path: root/drivers/cam_req_mgr/cam_mem_mgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cam_req_mgr/cam_mem_mgr.c')
-rw-r--r--drivers/cam_req_mgr/cam_mem_mgr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cam_req_mgr/cam_mem_mgr.c b/drivers/cam_req_mgr/cam_mem_mgr.c
index 9e056cb..77622e2 100644
--- a/drivers/cam_req_mgr/cam_mem_mgr.c
+++ b/drivers/cam_req_mgr/cam_mem_mgr.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
- * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2020, 2022 The Linux Foundation. All rights reserved.
*/
#include <linux/module.h>
@@ -682,7 +682,7 @@ int cam_mem_mgr_alloc_and_map(struct cam_mem_mgr_alloc_cmd *cmd)
if (rc) {
CAM_ERR(CAM_MEM,
"Failed in map_hw_va, len=%llu, flags=0x%x, fd=%d, region=%d, num_hdl=%d, rc=%d",
- cmd->len, cmd->flags, fd, region,
+ len, cmd->flags, fd, region,
cmd->num_hdl, rc);
goto map_hw_fail;
}
@@ -708,7 +708,7 @@ int cam_mem_mgr_alloc_and_map(struct cam_mem_mgr_alloc_cmd *cmd)
tbl.bufq[idx].kmdvaddr = kvaddr;
tbl.bufq[idx].vaddr = hw_vaddr;
tbl.bufq[idx].dma_buf = dmabuf;
- tbl.bufq[idx].len = cmd->len;
+ tbl.bufq[idx].len = len;
tbl.bufq[idx].num_hdl = cmd->num_hdl;
memcpy(tbl.bufq[idx].hdls, cmd->mmu_hdls,
sizeof(int32_t) * cmd->num_hdl);