Hi,

I came across this code snippet at vmwgfx_kms.c:2000.  The loop variable i is 
never used and rects is checked again and again.  Should it be something like 
rects[i].x instead of rects->x?  Thanks.

        for (i = 0; i < arg->num_outputs; ++i) {
                if (rects->x < 0 ||
                    rects->y < 0 ||
                    rects->x + rects->w > mode_config->max_width ||
                    rects->y + rects->h > mode_config->max_height) {
                        DRM_ERROR("Invalid GUI layout.\n");
                        ret = -EINVAL;
                        goto out_free;
                }
        }

- xi
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to