[PATCH v6 07/18] drm/virtio: add virtio_gpu_object_array & helpers

Gerd Hoffmann kraxel at redhat.com
Thu Jul 4 11:11:07 UTC 2019


> > +       for (i = 0; i < nents; i++) {
> > +               objs->nents = i;
> This line can be moved into the if-block just below.
> > +               objs->objs[i] = drm_gem_object_lookup(drm_file, handles[i]);
> > +               if (!objs->objs[i]) {
> > +                       virtio_gpu_array_put_free(objs);
> > +                       return NULL;
> > +               }

Done.

cheers,
  Gerd



More information about the dri-devel mailing list