Loading drivers/media/platform/msm/camera/cam_req_mgr/cam_mem_mgr.c +6 −1 Original line number Diff line number Diff line Loading @@ -426,6 +426,7 @@ static int cam_mem_util_get_dma_buf_fd(size_t len, struct dma_buf **buf, int *fd) { struct dma_buf *dmabuf = NULL; int rc = 0; if (!buf || !fd) { Loading @@ -449,7 +450,11 @@ static int cam_mem_util_get_dma_buf_fd(size_t len, * when we close fd, refcount becomes 1 and when we do * dmap_put_buf, ref count becomes 0 and memory will be freed. */ dma_buf_get(*fd); dmabuf = dma_buf_get(*fd); if (IS_ERR_OR_NULL(dmabuf)) { CAM_ERR(CAM_MEM, "dma_buf_get failed, *fd=%d", *fd); rc = -EINVAL; } return rc; Loading Loading
drivers/media/platform/msm/camera/cam_req_mgr/cam_mem_mgr.c +6 −1 Original line number Diff line number Diff line Loading @@ -426,6 +426,7 @@ static int cam_mem_util_get_dma_buf_fd(size_t len, struct dma_buf **buf, int *fd) { struct dma_buf *dmabuf = NULL; int rc = 0; if (!buf || !fd) { Loading @@ -449,7 +450,11 @@ static int cam_mem_util_get_dma_buf_fd(size_t len, * when we close fd, refcount becomes 1 and when we do * dmap_put_buf, ref count becomes 0 and memory will be freed. */ dma_buf_get(*fd); dmabuf = dma_buf_get(*fd); if (IS_ERR_OR_NULL(dmabuf)) { CAM_ERR(CAM_MEM, "dma_buf_get failed, *fd=%d", *fd); rc = -EINVAL; } return rc; Loading