public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: devel@edk2.groups.io, xiewenyi2@huawei.com,
	jordan.l.justen@intel.com, ard.biesheuvel@arm.com,
	anthony.perard@citrix.com, julien@xen.org
Cc: songdongkuang@huawei.com
Subject: Re: [edk2-devel] [PATCH EDK2 v2 1/1] OvmfPkg/XenPvBlkDxe: add return value if allocting fail
Date: Fri, 27 Nov 2020 18:57:53 +0100	[thread overview]
Message-ID: <d2691ee2-60ad-5a09-d91b-b705dd80a7eb@redhat.com> (raw)
In-Reply-To: <37bc23a3-54cf-c14b-7a57-8d8e7e339239@huawei.com>

On 11/24/20 10:19, wenyi,xie via groups.io wrote:
> It's OK to me.
> 
> Thanks
> Wenyi

Merged as commit f69a2b9a4202, via
<https://github.com/tianocore/edk2/pull/1151>.

Thanks
Laszlo

> On 2020/11/24 17:16, Laszlo Ersek wrote:
>> On 11/24/20 03:06, Wenyi Xie wrote:
>>> return EFI_OUT_OF_RESOURCES if pool allocating fail.
>>>
>>> Cc: Jordan Justen <jordan.l.justen@intel.com>
>>> Cc: Laszlo Ersek <lersek@redhat.com>
>>> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
>>> Cc: Anthony Perard <anthony.perard@citrix.com>
>>> Cc: Julien Grall <julien@xen.org>
>>> Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com>
>>> ---
>>>  OvmfPkg/XenPvBlkDxe/BlockFront.c | 4 ++++
>>>  1 file changed, 4 insertions(+)
>>>
>>> diff --git a/OvmfPkg/XenPvBlkDxe/BlockFront.c b/OvmfPkg/XenPvBlkDxe/BlockFront.c
>>> index 122a6baed25a..32d70c36cef2 100644
>>> --- a/OvmfPkg/XenPvBlkDxe/BlockFront.c
>>> +++ b/OvmfPkg/XenPvBlkDxe/BlockFront.c
>>> @@ -155,6 +155,10 @@ XenPvBlockFrontInitialization (
>>>    ASSERT (NodeName != NULL);
>>>  
>>>    Dev = AllocateZeroPool (sizeof (XEN_BLOCK_FRONT_DEVICE));
>>> +  if (Dev == NULL) {
>>> +    return EFI_OUT_OF_RESOURCES;
>>> +  }
>>> +
>>>    Dev->Signature = XEN_BLOCK_FRONT_SIGNATURE;
>>>    Dev->NodeName = NodeName;
>>>    Dev->XenBusIo = XenBusIo;
>>>
>>
>> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
>>
>> Unless it's urgent for you, I'd like to merge this after
>> edk2-stable202011. It's a bugfix alright, but the issue seems to have
>> existed for a long time, with presumably no symptoms for most users.
>>
>> Thanks
>> Laszlo
>>
>> .
>>
> 
> 
> 
> 
> 


      reply	other threads:[~2020-11-27 17:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-24  2:06 [PATCH v2 0/1] OvmfPkg/XenPvBlkDxe: add return value if allocting fail wenyi,xie
2020-11-24  2:06 ` [PATCH EDK2 v2 1/1] " wenyi,xie
2020-11-24  9:16   ` Laszlo Ersek
2020-11-24  9:19     ` wenyi,xie
2020-11-27 17:57       ` Laszlo Ersek [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=d2691ee2-60ad-5a09-d91b-b705dd80a7eb@redhat.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