[patch 1/4] drm/amdgpu: unwind properly in amdgpu_cs_parser_init()

2015-09-24 Thread Deucher, Alexander
I developers; Deucher, Alexander; Liu, Monk > Subject: Re: [patch 1/4] drm/amdgpu: unwind properly in > amdgpu_cs_parser_init() > > On Wed, Sep 23, 2015 at 01:13:21PM -0400, Alex Deucher wrote: > > Applied. thanks! > > Ugh. I'm sorry, I have a signedness bug in this patch.

[patch 1/4] drm/amdgpu: unwind properly in amdgpu_cs_parser_init()

2015-09-24 Thread Dan Carpenter
On Wed, Sep 23, 2015 at 01:13:21PM -0400, Alex Deucher wrote: > Applied. thanks! Ugh. I'm sorry, I have a signedness bug in this patch. That was really sloppy of me. Should a send a v2 or a fixup? regards, dan carpenter

[patch 1/4] drm/amdgpu: unwind properly in amdgpu_cs_parser_init()

2015-09-23 Thread Christian König
On 23.09.2015 12:59, Dan Carpenter wrote: > The amdgpu_cs_parser_init() function doesn't clean up after itself but > instead the caller uses a free everything function amdgpu_cs_parser_fini() > on failure. This style of error handling is often buggy. In this > example, we call "drm_free_large(par

[patch 1/4] drm/amdgpu: unwind properly in amdgpu_cs_parser_init()

2015-09-23 Thread Dan Carpenter
The amdgpu_cs_parser_init() function doesn't clean up after itself but instead the caller uses a free everything function amdgpu_cs_parser_fini() on failure. This style of error handling is often buggy. In this example, we call "drm_free_large(parser->chunks[i].kdata);" when it is an unintialized

[patch 1/4] drm/amdgpu: unwind properly in amdgpu_cs_parser_init()

2015-09-23 Thread Alex Deucher
On Wed, Sep 23, 2015 at 10:16 AM, Christian König wrote: > On 23.09.2015 12:59, Dan Carpenter wrote: >> >> The amdgpu_cs_parser_init() function doesn't clean up after itself but >> instead the caller uses a free everything function amdgpu_cs_parser_fini() >> on failure. This style of error handl