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>
dev
Derek Foreman 9 years ago committed by Pekka Paalanen
parent 425d9d9a67
commit c06389a105
  1. 2
      src/linux-dmabuf.c

@ -219,7 +219,7 @@ params_create(struct wl_client *client,
* by the kernel not supporting seeking on dmabuf */ * by the kernel not supporting seeking on dmabuf */
size = lseek(buffer->attributes.fd[i], 0, SEEK_END); size = lseek(buffer->attributes.fd[i], 0, SEEK_END);
if (size == -1) if (size == -1)
break; continue;
if (buffer->attributes.offset[i] >= size) { if (buffer->attributes.offset[i] >= size) {
wl_resource_post_error(params_resource, wl_resource_post_error(params_resource,

Loading…
Cancel
Save