[edk2-devel] [PATCH v2 1/3] RedfishPkg/RedfishRestExDxe: fix CPU exception in RedfishRestExDxe

Nickle Wang via groups.io nicklew=nvidia.com at groups.io
Thu Jul 6 08:07:44 UTC 2023


I am ok to remove it since we don't use it. @Abner Chang, comment as driver author?

Thanks,
Nickle

> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin at gmail.com>
> Sent: Wednesday, July 5, 2023 4:43 PM
> To: devel at edk2.groups.io; Nickle Wang <nicklew at nvidia.com>
> Cc: Abner Chang <abner.chang at amd.com>; Igor Kulchytskyy <igork at ami.com>;
> Nick Ramirez <nramirez at nvidia.com>
> Subject: Re: [edk2-devel] [PATCH v2 1/3] RedfishPkg/RedfishRestExDxe: fix CPU
> exception in RedfishRestExDxe
> 
> External email: Use caution opening links or attachments
> 
> 
> Just one note:
> All manipulations with this list are going in conjunction with
> RestExSb->RestExChildrenNum.
> At first glance it appears this field must be decremented also. But I see no usage
> for RestExChildrenNum at all, may be it can be eliminated?
> 
> Regards,
> MIke.
> 
> On Wed, Jul 5, 2023 at 9:56 AM Nickle Wang via groups.io
> <nicklew=nvidia.com at groups.io> wrote:
> >
> > RedfishRestExDxe driver failed to uninstall service binding protocol
> > when driver binding stop is called. Application drivers may still use
> > RedfishRestExDxe after it is disconnected in system.
> >
> > Signed-off-by: Nickle Wang <nicklew at nvidia.com>
> > Cc: Abner Chang <abner.chang at amd.com>
> > Cc: Igor Kulchytskyy <igork at ami.com>
> > Cc: Nick Ramirez <nramirez at nvidia.com>
> > Reviewed-by: Abner Chang <abner.chang at amd.com>
> > ---
> >  RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c
> > b/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c
> > index ad65ae213ae0..7036aed42683 100644
> > --- a/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c
> > +++ b/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c
> > @@ -3,6 +3,7 @@
> >
> >    Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
> >    (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
> > +  Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
> >
> >    SPDX-License-Identifier: BSD-2-Clause-Patent
> >
> > @@ -57,6 +58,7 @@ RestExDestroyChildEntryInHandleBuffer (
> >    ChildHandleBuffer = ((RESTEX_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT
> > *)Context)->ChildHandleBuffer;
> >
> >    if (!NetIsInHandleBuffer (Instance->ChildHandle, NumberOfChildren,
> > ChildHandleBuffer)) {
> > +    RemoveEntryList (&Instance->Link);
> >      return EFI_SUCCESS;
> >    }
> >
> > @@ -563,7 +565,7 @@ RedfishRestExDriverBindingStop (
> >                                    );
> >    }
> >
> > -  if ((NumberOfChildren == 0) && IsListEmpty
> > (&RestExSb->RestExChildrenList)) {
> > +  if (IsListEmpty (&RestExSb->RestExChildrenList)) {
> >      gBS->UninstallProtocolInterface (
> >             NicHandle,
> >             &gEfiRestExServiceBindingProtocolGuid,
> > --
> > 2.17.1
> >
> >
> >
> > 
> >
> >


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#106683): https://edk2.groups.io/g/devel/message/106683
Mute This Topic: https://groups.io/mt/99960360/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list