summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-04-25 09:23:24 -0500
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-04-26 11:02:06 +0300
commitc06389a105995622841b640c56b252286ac1143c (patch)
treebf00ca73dc610e36209d7d25f8fcb60f23359ec3
parent425d9d9a67c64d13aae80d953b7e266066ece7ed (diff)
linux-dmabuf: Keep checking planes even if the first doesn't support lseek
If we break; when lseek fails we can fail to do some legitimate tests on remaining planes in a multi-plane buffer. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
-rw-r--r--src/linux-dmabuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux-dmabuf.c b/src/linux-dmabuf.c
index 8c6337c3..78e77a24 100644
--- a/src/linux-dmabuf.c
+++ b/src/linux-dmabuf.c
@@ -219,7 +219,7 @@ params_create(struct wl_client *client,
* by the kernel not supporting seeking on dmabuf */
size = lseek(buffer->attributes.fd[i], 0, SEEK_END);
if (size == -1)
- break;
+ continue;
if (buffer->attributes.offset[i] >= size) {
wl_resource_post_error(params_resource,