> -----Original Message----- > From: Cheng, Yao > Sent: Saturday, November 22, 2014 3:07 > To: intel-gfx@xxxxxxxxxxxxxxxxxxxxx; dri-devel@xxxxxxxxxxxxxxxxxxxxx; > daniel.vetter@xxxxxxxx; Kelley, Sean V; Chehab, John > Cc: Jiang, Fei; dh.herrmann@xxxxxxxxx; jani.nikula@xxxxxxxxxxxxxxx; > emil.l.velikov@xxxxxxxxx; ville.syrjala@xxxxxxxxxxxxxxx; > jbarnes@xxxxxxxxxxxxxxxx; daniel@xxxxxxxxxxxxx; Cheng, Yao > Subject: [RFC PATCH v3 2/4] drm/ipvr: drm driver for VED > > + > +int ipvr_gem_mmap_offset_ioctl(struct drm_device *dev, > + void *data, struct drm_file *file_priv) > +{ > + int ret; > + struct drm_ipvr_gem_mmap_offset *args = data; > + struct drm_ipvr_gem_object *obj; > + > + IPVR_DEBUG_ENTRY("getting mmap offset for BO %u.\n", args- > >handle); > + obj = to_ipvr_bo(drm_gem_object_lookup(dev, file_priv, args- > >handle)); > + > + /* create map offset */ > + ret = drm_gem_create_mmap_offset(&obj->base); > + if (ret) { > + IPVR_ERROR("could not allocate mmap offset: %d\n", ret); > + return ret; > + } > + args->offset = drm_vma_node_offset_addr(&obj->base.vma_node); > + return 0; > +} I missed an unreferenced here. _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx