Re: [PATCH] drm/amdgpu: fix userptr flags check

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

 



On Thu, Nov 26, 2015 at 9:42 PM, Michel Dänzer <michel@xxxxxxxxxxx> wrote:
> On 26.11.2015 19:06, Christian König wrote:
>> From: Christian König <christian.koenig@xxxxxxx>
>>
>> That got messed up while porting it from Radeon.
>>
>> Signed-off-by: Christian König <christian.koenig@xxxxxxx>
>> Cc: stable@xxxxxxxxxxxxxxx
>> ---
>>  drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5 +++--
>>  1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
>> index 00c5b58..af53215 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
>> @@ -242,8 +242,9 @@ int amdgpu_gem_userptr_ioctl(struct drm_device *dev, void *data,
>>           AMDGPU_GEM_USERPTR_REGISTER))
>>               return -EINVAL;
>>
>> -     if (!(args->flags & AMDGPU_GEM_USERPTR_ANONONLY) ||
>> -                !(args->flags & AMDGPU_GEM_USERPTR_REGISTER)) {
>> +     if (!(args->flags & AMDGPU_GEM_USERPTR_READONLY) && (
>> +          !(args->flags & AMDGPU_GEM_USERPTR_ANONONLY) ||
>> +          !(args->flags & AMDGPU_GEM_USERPTR_REGISTER))) {
>>
>>               /* if we want to write to it we must require anonymous
>>                  memory and install a MMU notifier */
>>
>
> Reviewed-by: Michel Dänzer <michel.daenzer@xxxxxxx>


Applied.  thanks!

Alex

>
>
> --
> Earthling Michel Dänzer               |               http://www.amd.com
> Libre software enthusiast             |             Mesa and X developer
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://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