Skip to content

Commit

Permalink
media: xen-front: Don't mark buffer as queued in prepare
Browse files Browse the repository at this point in the history
Marking the buffer as queued in prepare causes it to sometimes get
processed before the queue function is called and the v4l is ready to
handle it, that causes warnings.

The same flag is already being set in the queue function. So skip the
setting in prepare.

Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
  • Loading branch information
Deedone authored and otyshchenko1 committed May 25, 2023
1 parent 579f6e4 commit 2be9775
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/media/xen/xen_camera_front_v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,6 @@ static int buffer_prepare(struct vb2_buffer *vb)
return ret;
}

mutex_lock(&v4l2_info->bufs_lock);
xen_buf->is_queued = true;
mutex_unlock(&v4l2_info->bufs_lock);
return 0;
}

Expand Down

0 comments on commit 2be9775

Please sign in to comment.