aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2014-04-07 08:57:48 -0300
committerMauro Carvalho Chehab <[email protected]>2014-04-16 18:43:13 -0300
commit61bd8fb37db948154ae01c8ed43a86633ae1d2be (patch)
tree90f96b0caa8834d2f9fcc2c5b8714106045fdecf /fs/jbd2/commit.c
parent412376a1532a9eb3eb66c9d07175f21cdbebdc09 (diff)
[media] vb2: if bytesused is 0, then fill with output buffer length
The application should really always fill in bytesused for output buffers, unfortunately the vb2 framework never checked for that. So for single planar formats replace a bytesused of 0 by the length of the buffer, and for multiplanar format do the same if bytesused is 0 for ALL planes. This seems to be what the user really intended if v4l2_buffer was just memset to 0. I'm afraid that just checking for this and returning an error would break too many applications. Quite a few drivers never check for bytesused at all and just use the buffer length instead. Signed-off-by: Hans Verkuil <[email protected]> Acked-by: Pawel Osciak <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions