[PATCH 2/7] drm/amdgpu: remove duplicated job free

zhoucm1 david1.zhou at amd.com
Wed Jun 29 08:53:43 UTC 2016



On 2016年06月29日 16:51, Christian König wrote:
> Am 29.06.2016 um 10:09 schrieb Chunming Zhou:
>> Change-Id: I342f5993766a3eb5be1116a0f6846fe4a445fd30
>> Signed-off-by: Chunming Zhou <David1.Zhou at amd.com>
>
> NAK, this is for the cleanup handling when the job isn't submitted 
> because of an error.
Ah, Sorry, I forgot it.

David Zhou
>
> Christian.
>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 --
>>   1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 
>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
>> index d16ed26..5886768 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
>> @@ -577,8 +577,6 @@ static void amdgpu_cs_parser_fini(struct 
>> amdgpu_cs_parser *parser, int error, bo
>>       for (i = 0; i < parser->nchunks; i++)
>>           drm_free_large(parser->chunks[i].kdata);
>>       kfree(parser->chunks);
>> -    if (parser->job)
>> -        amdgpu_job_free(parser->job);
>>       amdgpu_bo_unref(&parser->uf_entry.robj);
>>   }
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx



More information about the amd-gfx mailing list