Skip to content
Snippets Groups Projects
Commit cd76ba7e authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Iliyan Malchev
Browse files

Revert "[media] v4l2: vb2: one more fix for REQBUFS()"


This reverts commit 31901a07.

Queue should be reinitialized on each REQBUFS() call even if the memory
access method and buffer count have not been changed. The user might have
changed the format and if we go the short path introduced in that commit,
the memory buffer will not be reallocated to fit with new format.

The previous patch was just over-engineered optimization, which just
introduced a bug to videobuf2.

Bug: 18528130

Reported-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
CC: Pawel Osciak <pawel@osciak.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>

Change-Id: I537d5dcc025a176111fefc4bcdad934266373573
Git-commit: bf7b73ef
Git-repo: https://github.com/torvalds/linux.git


[dramasub@codeaurora.org: Resolved trivial merge conflicts]
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
Signed-off-by: default avatarLajos Molnar <lajos@google.com>
parent b76c72f6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment