lkml.org 
[lkml]   [2017]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] objtool: Fix memory leak in decode_instructions()
From
Date
On Friday 13 October 2017 10:36 AM, Josh Poimboeuf wrote:
> On Fri, Oct 13, 2017 at 10:14:36AM +0530, Kamalesh Babulal wrote:
>> On Thursday 12 October 2017 09:40 PM, Josh Poimboeuf wrote:
>>> On Thu, Oct 12, 2017 at 02:32:14PM +0530, Kamalesh Babulal wrote:
>>>> free the allocated insn before returning, when an error occurs
>>>> before adding insn to file->insn_list.
>>>>
>>>> Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
>>>
>>> Any chance you're working on porting objtool to ppc64le? :-)
>>>
>>> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
>>>
>>
>> Thanks for the review. I have started working on it :)
>
> Good! Let me know if you have any questions.

Thank you, I am sure I will have lots of them.

>
> I originally wrote objtool with arch-independence in mind, though with
> the new "objtool 2.0" rewrite, it unfortunately became more
> x86-specific.
>
> I was hoping to work on making it more arch-independent, and then start
> porting it to other arches, but it may be a few months before I have the
> time to do so. So any work you want to there would be great.
>

Sure, will keep that in mind to abstract arch-independent code in to
common files and push arch-dependent code into arch/ directory for both
ppc64le/x86.

--
cheers,
Kamalesh.

\
 
 \ /
  Last update: 2017-10-13 07:51    [W:0.058 / U:0.384 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site