Re: [PATCH 2/2] drm/etnaviv: fix mmap operations for userptr and dma-buf objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Mittwoch, den 27.04.2016, 21:27 +0100 schrieb Russell King - ARM
Linux:
> On Wed, Apr 27, 2016 at 02:39:21PM +0200, Lucas Stach wrote:
> > +static int etnaviv_gem_userptr_mmap_obj(struct etnaviv_gem_object *etnaviv_obj,
> > +		struct vm_area_struct *vma)
> > +{
> > +	return -EPERM;
> > +}
> 
>        EPERM  The prot argument asks for PROT_EXEC but the mapped area belongs
>               to a file on a file system that was mounted no-exec.
> 
> It seems this error code is not suitable for this application - it
> doesn't fit the spirit of EPERM.  The universal EINVAL would probably
> be better.
> 
I've changed this to return EINVAL.

Regards,
Lucas

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux