Re: [PATCH] vb2: fix bytesused == 0 handling

2014-07-18 Thread Marek Szyprowski
Hello, On 2014-07-17 11:53, Hans Verkuil wrote: The original report from Nikhil was that if data_offset > 0 and bytesused == 0, then the check in __verify_length() would fail, even though the spec says that if bytes_used == 0, then it will be replaced by the actual length of the buffer. After d

[PATCH] vb2: fix bytesused == 0 handling

2014-07-17 Thread Hans Verkuil
The original report from Nikhil was that if data_offset > 0 and bytesused == 0, then the check in __verify_length() would fail, even though the spec says that if bytes_used == 0, then it will be replaced by the actual length of the buffer. After digging into it a bit more I realized that there wer