public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Sami Mujawar" <sami.mujawar@arm.com>
To: Moritz Fischer <moritzf@google.com>, devel@edk2.groups.io
Cc: Alexei Fedorov <Alexei.Fedorov@arm.com>, nd <nd@arm.com>
Subject: Re: [PATCH] DynamicTablesPkg: Fix unitialized variable use
Date: Wed, 20 Oct 2021 11:10:13 +0100	[thread overview]
Message-ID: <93442dd1-99e2-9538-237b-7eb9ef8b961e@arm.com> (raw)
In-Reply-To: <86648b45-863a-9e27-6db1-7127bb8ed7ed@arm.com>

Merged as 37a33f02aa1a..4fdf843c75d2

Thanks.

Regards,

Sami Mujawar


On 20/10/2021 10:40 AM, Sami Mujawar wrote:
> Hi Moritz,
>
> Thank you for this fix.
>
> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
>
> Regards,
>
> Sami Mujawar
>
> On 20/10/2021 06:21 AM, Moritz Fischer wrote:
>> In the success case we should return EFI_SUCCESS rather than returning
>> a potentially unitialized value of Status.
>>
>> Cc: Sami Mujawar <Sami.Mujawar@arm.com>
>> Cc: Alexei Fedorov <Alexei.Fedorov@arm.com>
>> Signed-off-by: Moritz Fischer <moritzf@google.com>
>> ---
>> .../Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git 
>> a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c 
>> b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c 
>>
>> index 0bdb6c24c5bb..e9e1a85ede63 100644
>> --- 
>> a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c
>> +++ 
>> b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlResourceDataCodeGen.c
>> @@ -91,7 +91,7 @@ LinkRdNode (
>>       *NewRdNode = RdNode;
>>     }
>>   -  return Status;
>> +  return EFI_SUCCESS;
>>     error_handler:
>>     Status1 = AmlDeleteTree ((AML_NODE_HEADER*)RdNode);
>


      reply	other threads:[~2021-10-20 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-20  5:21 [PATCH] DynamicTablesPkg: Fix unitialized variable use Moritz Fischer
2021-10-20  9:40 ` Sami Mujawar
2021-10-20 10:10   ` Sami Mujawar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=93442dd1-99e2-9538-237b-7eb9ef8b961e@arm.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox