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

Commit b437f3b6 authored by Abdulla Anam's avatar Abdulla Anam
Browse files

msm: vidc: avoid fd based search for non-extradata plane



Fd based search overrides the result of handle based search for
the non-extradata plane and hence fetches a wrong buffer. Instead
of fresh map, device address is computed with that buffer's base
address. Remove the fd based search for non-extradata plane.

CRs-Fixed: 1045763
Change-Id: I48cd41e9f93c6554d115a43b6e21f35366276208
Signed-off-by: default avatarAbdulla Anam <abdullahanam@codeaurora.org>
parent 403033bb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -492,9 +492,9 @@ int map_and_register_buf(struct msm_vidc_inst *inst, struct v4l2_buffer *b)
			goto exit;
		}

		same_fd_handle = get_same_fd_buffer(
		same_fd_handle = i ? get_same_fd_buffer(
				&inst->registeredbufs,
				b->m.planes[i].reserved[0]);
				b->m.planes[i].reserved[0]) : NULL;

		populate_buf_info(binfo, b, i);
		if (same_fd_handle) {