Stephane Marchesin wrote:
Michel DÃnzer wrote:

+ DRM_COPY_FROM_USER_IOCTL( memfree, (drm_radeon_mem_free_t __user *)data,
+ sizeof(memfree) );
+
+ dev_priv->surfaces&= (~(1<<memfree.surface));



It should definitely ensure that only the owner can free a surface though. It would also need to free a client's surfaces if it dies, etc.

How do you "know" the owner ? I'm not sure the pid would be enough.

The same way everything else in the DRM does: using the caller's file pointer (filp).



------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to