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

Commit de0cfd86 authored by Alok Pandey's avatar Alok Pandey
Browse files

msm: camera: mem: print error value



In case of map IOCTL failure, print error number and fd.

Change-Id: Iab6088a0461d7c12694e31e5d03ba61d10ace80a
Signed-off-by: default avatarAlok Pandey <akumarpa@codeaurora.org>
parent ed85a423
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -779,7 +779,8 @@ int cam_mem_mgr_map(struct cam_mem_mgr_map_cmd *cmd)


	dmabuf = dma_buf_get(cmd->fd);
	dmabuf = dma_buf_get(cmd->fd);
	if (IS_ERR_OR_NULL((void *)(dmabuf))) {
	if (IS_ERR_OR_NULL((void *)(dmabuf))) {
		CAM_ERR(CAM_MEM, "Failed to import dma_buf fd");
		CAM_ERR(CAM_MEM, "Failed to import dma_buf fd %d, rc %d",
			cmd->fd, (IS_ERR(dmabuf) ? PTR_ERR(dmabuf) : 0));
		return -EINVAL;
		return -EINVAL;
	}
	}