* [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes
@ 2023-12-19 1:00 Mike Maslenkin
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 1/3] RedfishClientPkg: add check for NULL pointer to avoid ASSERT Mike Maslenkin
` (4 more replies)
0 siblings, 5 replies; 11+ messages in thread
From: Mike Maslenkin @ 2023-12-19 1:00 UTC (permalink / raw)
To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin
This patch set contains minor fixes.
diff from v1:
original patch 4/4 with change related to BIOS resources provisioning removed.
PR: https://github.com/tianocore/edk2-redfish-client/pull/64
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Nickle Wang <nicklew@nvidia.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112657): https://edk2.groups.io/g/devel/message/112657
Mute This Topic: https://groups.io/mt/103255134/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 11+ messages in thread
* [edk2-devel] [edk2-redfish-client][PATCH v2 1/3] RedfishClientPkg: add check for NULL pointer to avoid ASSERT
2023-12-19 1:00 [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Mike Maslenkin
@ 2023-12-19 1:00 ` Mike Maslenkin
2023-12-19 3:40 ` Chang, Abner via groups.io
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 2/3] RedfishClientPkg: fix typo in EfiRestJsonStructureProtocolIsReady Mike Maslenkin
` (3 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Mike Maslenkin @ 2023-12-19 1:00 UTC (permalink / raw)
To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin
Initially RedfishPlatformConfigGetConfigureLang could return success
even if ConfigureLangList is empty. After fixing this condition,
RedfishPlatformConfigGetConfigureLang returns an error, but this doesn't
help to avoid ASSERT because the error path is the same as for non-empty
list.
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Reviewed-by: Nickle Wang <nicklew@nvidia.com>
---
.../RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c
index 4cb7621c25c4..0f0b050d7eba 100644
--- a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c
+++ b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c
@@ -3118,7 +3118,9 @@ LeaveFunction:
FreePool (ConfigureLangBuffer);
}
- FreePool (ConfigureLangList);
+ if (ConfigureLangList != NULL) {
+ FreePool (ConfigureLangList);
+ }
*NumberOfValues = (UINT32)ListCount;
return FirstEmptyPropKeyValueList;
--
2.32.0 (Apple Git-132)
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112658): https://edk2.groups.io/g/devel/message/112658
Mute This Topic: https://groups.io/mt/103255135/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [edk2-devel] [edk2-redfish-client][PATCH v2 2/3] RedfishClientPkg: fix typo in EfiRestJsonStructureProtocolIsReady
2023-12-19 1:00 [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Mike Maslenkin
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 1/3] RedfishClientPkg: add check for NULL pointer to avoid ASSERT Mike Maslenkin
@ 2023-12-19 1:00 ` Mike Maslenkin
2023-12-19 3:40 ` Chang, Abner via groups.io
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 3/3] RedfishClientPkg: fix access to unitialized variable Mike Maslenkin
` (2 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Mike Maslenkin @ 2023-12-19 1:00 UTC (permalink / raw)
To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Reviewed-by: Nickle Wang <nicklew@nvidia.com>
---
RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
index 8b9bdc313832..85dc546120e2 100644
--- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
+++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
@@ -562,7 +562,7 @@ EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL mRedfishConfigHandler = {
**/
VOID
EFIAPI
-EfiRestJasonStructureProtocolIsReady (
+EfiRestJsonStructureProtocolIsReady (
IN EFI_EVENT Event,
IN VOID *Context
)
@@ -829,7 +829,7 @@ RedfishResourceEntryPoint (
EfiCreateProtocolNotifyEvent (
&gEfiRestJsonStructureProtocolGuid,
TPL_CALLBACK,
- EfiRestJasonStructureProtocolIsReady,
+ EfiRestJsonStructureProtocolIsReady,
NULL,
&Registration
);
--
2.32.0 (Apple Git-132)
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112659): https://edk2.groups.io/g/devel/message/112659
Mute This Topic: https://groups.io/mt/103255137/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [edk2-devel] [edk2-redfish-client][PATCH v2 3/3] RedfishClientPkg: fix access to unitialized variable.
2023-12-19 1:00 [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Mike Maslenkin
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 1/3] RedfishClientPkg: add check for NULL pointer to avoid ASSERT Mike Maslenkin
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 2/3] RedfishClientPkg: fix typo in EfiRestJsonStructureProtocolIsReady Mike Maslenkin
@ 2023-12-19 1:00 ` Mike Maslenkin
2023-12-19 3:40 ` Chang, Abner via groups.io
2023-12-19 2:04 ` [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Chang, Abner via groups.io
2024-01-03 8:33 ` Chang, Abner via groups.io
4 siblings, 1 reply; 11+ messages in thread
From: Mike Maslenkin @ 2023-12-19 1:00 UTC (permalink / raw)
To: devel; +Cc: abner.chang, nicklew, igork, Mike Maslenkin
It is possible that at the time of accessing to AsciiLocation pointer
the memory is not allocated.
Also gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) emits a warning for
this case:
RedfishFeatureUtilityLib.c:1889:37: error: 'AsciiLocation' may be used uninitialized in this function [-Werror=maybe-uninitialized]
*Location = StrAsciiToUnicode (AsciiLocation);
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Reviewed-by: Nickle Wang <nicklew@nvidia.com>
---
.../RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c
index 0f0b050d7eba..01c054ae3b70 100644
--- a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c
+++ b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c
@@ -1856,7 +1856,8 @@ GetEtagAndLocation (
}
if (Location != NULL) {
- *Location = NULL;
+ *Location = NULL;
+ AsciiLocation = NULL;
if (*(Response->StatusCode) == HTTP_STATUS_200_OK) {
Header = HttpFindHeader (Response->HeaderCount, Response->Headers, HTTP_HEADER_LOCATION);
--
2.32.0 (Apple Git-132)
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112660): https://edk2.groups.io/g/devel/message/112660
Mute This Topic: https://groups.io/mt/103255138/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes
2023-12-19 1:00 [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Mike Maslenkin
` (2 preceding siblings ...)
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 3/3] RedfishClientPkg: fix access to unitialized variable Mike Maslenkin
@ 2023-12-19 2:04 ` Chang, Abner via groups.io
2023-12-19 2:39 ` Mike Maslenkin
2024-01-03 8:33 ` Chang, Abner via groups.io
4 siblings, 1 reply; 11+ messages in thread
From: Chang, Abner via groups.io @ 2023-12-19 2:04 UTC (permalink / raw)
To: Mike Maslenkin, devel@edk2.groups.io; +Cc: nicklew@nvidia.com, igork@ami.com
[-- Attachment #1: Type: text/plain, Size: 1605 bytes --]
[AMD Official Use Only - General]
Hi Mike,
According the conversation I had with Rebecca, please update your copyright that follow below format on the later patches you send; as you use the individual contributor copyright.
Copyright (c) FIRST - LAST, Contributor <Contributor's email > <BR>
Thanks
Abner
> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin@gmail.com>
> Sent: Tuesday, December 19, 2023 9:00 AM
> To: devel@edk2.groups.io
> Cc: Chang, Abner <Abner.Chang@amd.com>; nicklew@nvidia.com;
> igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> Subject: [edk2-redfish-client][PATCH v2 0/3] change method for provisioning
> + minor fixes
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> This patch set contains minor fixes.
>
> diff from v1:
> original patch 4/4 with change related to BIOS resources provisioning
> removed.
>
> PR: https://github.com/tianocore/edk2-redfish-client/pull/64
>
> Cc: Abner Chang <abner.chang@amd.com>
> Cc: Igor Kulchytskyy <igork@ami.com>
> Cc: Nickle Wang <nicklew@nvidia.com>
> Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112663): https://edk2.groups.io/g/devel/message/112663
Mute This Topic: https://groups.io/mt/103255134/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: message/rfc822, Size: 3006 bytes --]
From: "Chang, Abner" <Abner.Chang@amd.com>
To: Rebecca Cran <rebecca@bsdio.com>, "devel@edk2.groups.io" <devel@edk2.groups.io>
Subject: RE: [edk2-devel] Copyright for an individual contributor
Date: Tue, 19 Dec 2023 01:38:42 +0000
Message-ID: <MN2PR12MB3966AF722E06DD8D64EBBCA2EA97A@MN2PR12MB3966.namprd12.prod.outlook.com>
Hmm, ok, thanks Rebecca.
So that would be:
Copyright (c) FIRST - LAST, Contributor <Contributor’s email > <BR>
Thanks
Abner
> -----Original Message-----
> From: Rebecca Cran <rebecca@bsdio.com>
> Sent: Monday, December 18, 2023 1:37 PM
> To: devel@edk2.groups.io; Chang, Abner <Abner.Chang@amd.com>
> Subject: Re: [edk2-devel] Copyright for an individual contributor
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> On 12/17/23 20:01, Chang, Abner via groups.io wrote:
> >
> > [AMD Official Use Only - General]
> >
> >
> > Hi all,
> >
> > How do we have the copyright for the contribution from an individual?
> > I don’t see the formatting defined in edk2 C coding standard. Is the
> > below format ok?
> >
> > Copyright (c) 2023, Contributor <Contributor’s email >
> >
>
> I think to follow the style guide, it should have a "<BR>" at the end,
> though most files with copyrights from individuals don't have that.
>
>
> --
>
> Rebecca Cran
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes
2023-12-19 2:04 ` [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Chang, Abner via groups.io
@ 2023-12-19 2:39 ` Mike Maslenkin
2023-12-19 3:38 ` Chang, Abner via groups.io
0 siblings, 1 reply; 11+ messages in thread
From: Mike Maslenkin @ 2023-12-19 2:39 UTC (permalink / raw)
To: Chang, Abner; +Cc: devel@edk2.groups.io, nicklew@nvidia.com, igork@ami.com
Hi Abner,
Ok. I've already done it. But copyright change mentioned is for
another patchset to edk2's RedfishPkg.
Whereas you mentioned FIRST - LAST, would you like me to add
copyrights for these changes?
I guess LAST is not required for the new added code.
I didn't add any copyrights previously, so for my case it would be:
Copyright (c) 2023, Contributor <Contributor's email > <BR>
in any place.
Regard,
Mike.
On Tue, Dec 19, 2023 at 5:04 AM Chang, Abner <Abner.Chang@amd.com> wrote:
>
> [AMD Official Use Only - General]
>
> Hi Mike,
> According the conversation I had with Rebecca, please update your copyright that follow below format on the later patches you send; as you use the individual contributor copyright.
>
> Copyright (c) FIRST - LAST, Contributor <Contributor's email > <BR>
>
> Thanks
> Abner
>
> > -----Original Message-----
> > From: Mike Maslenkin <mike.maslenkin@gmail.com>
> > Sent: Tuesday, December 19, 2023 9:00 AM
> > To: devel@edk2.groups.io
> > Cc: Chang, Abner <Abner.Chang@amd.com>; nicklew@nvidia.com;
> > igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> > Subject: [edk2-redfish-client][PATCH v2 0/3] change method for provisioning
> > + minor fixes
> >
> > Caution: This message originated from an External Source. Use proper caution
> > when opening attachments, clicking links, or responding.
> >
> >
> > This patch set contains minor fixes.
> >
> > diff from v1:
> > original patch 4/4 with change related to BIOS resources provisioning
> > removed.
> >
> > PR: https://github.com/tianocore/edk2-redfish-client/pull/64
> >
> > Cc: Abner Chang <abner.chang@amd.com>
> > Cc: Igor Kulchytskyy <igork@ami.com>
> > Cc: Nickle Wang <nicklew@nvidia.com>
> > Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112666): https://edk2.groups.io/g/devel/message/112666
Mute This Topic: https://groups.io/mt/103255134/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes
2023-12-19 2:39 ` Mike Maslenkin
@ 2023-12-19 3:38 ` Chang, Abner via groups.io
0 siblings, 0 replies; 11+ messages in thread
From: Chang, Abner via groups.io @ 2023-12-19 3:38 UTC (permalink / raw)
To: Mike Maslenkin; +Cc: devel@edk2.groups.io, nicklew@nvidia.com, igork@ami.com
[AMD Official Use Only - General]
Yes, Copyright (c) 2023, Contributor <Contributor's email > <BR> is good for you now.
Abner
> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin@gmail.com>
> Sent: Tuesday, December 19, 2023 10:40 AM
> To: Chang, Abner <Abner.Chang@amd.com>
> Cc: devel@edk2.groups.io; nicklew@nvidia.com; igork@ami.com
> Subject: Re: [edk2-redfish-client][PATCH v2 0/3] change method for
> provisioning + minor fixes
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> Hi Abner,
>
> Ok. I've already done it. But copyright change mentioned is for
> another patchset to edk2's RedfishPkg.
> Whereas you mentioned FIRST - LAST, would you like me to add
> copyrights for these changes?
> I guess LAST is not required for the new added code.
> I didn't add any copyrights previously, so for my case it would be:
> Copyright (c) 2023, Contributor <Contributor's email > <BR>
> in any place.
>
> Regard,
> Mike.
>
>
>
> On Tue, Dec 19, 2023 at 5:04 AM Chang, Abner <Abner.Chang@amd.com>
> wrote:
> >
> > [AMD Official Use Only - General]
> >
> > Hi Mike,
> > According the conversation I had with Rebecca, please update your
> copyright that follow below format on the later patches you send; as you use
> the individual contributor copyright.
> >
> > Copyright (c) FIRST - LAST, Contributor <Contributor's email > <BR>
> >
> > Thanks
> > Abner
> >
> > > -----Original Message-----
> > > From: Mike Maslenkin <mike.maslenkin@gmail.com>
> > > Sent: Tuesday, December 19, 2023 9:00 AM
> > > To: devel@edk2.groups.io
> > > Cc: Chang, Abner <Abner.Chang@amd.com>; nicklew@nvidia.com;
> > > igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> > > Subject: [edk2-redfish-client][PATCH v2 0/3] change method for
> provisioning
> > > + minor fixes
> > >
> > > Caution: This message originated from an External Source. Use proper
> caution
> > > when opening attachments, clicking links, or responding.
> > >
> > >
> > > This patch set contains minor fixes.
> > >
> > > diff from v1:
> > > original patch 4/4 with change related to BIOS resources provisioning
> > > removed.
> > >
> > > PR: https://github.com/tianocore/edk2-redfish-client/pull/64
> > >
> > > Cc: Abner Chang <abner.chang@amd.com>
> > > Cc: Igor Kulchytskyy <igork@ami.com>
> > > Cc: Nickle Wang <nicklew@nvidia.com>
> > > Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
> >
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112673): https://edk2.groups.io/g/devel/message/112673
Mute This Topic: https://groups.io/mt/103255134/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [edk2-redfish-client][PATCH v2 2/3] RedfishClientPkg: fix typo in EfiRestJsonStructureProtocolIsReady
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 2/3] RedfishClientPkg: fix typo in EfiRestJsonStructureProtocolIsReady Mike Maslenkin
@ 2023-12-19 3:40 ` Chang, Abner via groups.io
0 siblings, 0 replies; 11+ messages in thread
From: Chang, Abner via groups.io @ 2023-12-19 3:40 UTC (permalink / raw)
To: Mike Maslenkin, devel@edk2.groups.io; +Cc: nicklew@nvidia.com, igork@ami.com
[AMD Official Use Only - General]
Reviewed-by: Abner Chang <abner.chang@amd.com>
> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin@gmail.com>
> Sent: Tuesday, December 19, 2023 9:00 AM
> To: devel@edk2.groups.io
> Cc: Chang, Abner <Abner.Chang@amd.com>; nicklew@nvidia.com;
> igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> Subject: [edk2-redfish-client][PATCH v2 2/3] RedfishClientPkg: fix typo in
> EfiRestJsonStructureProtocolIsReady
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> Cc: Abner Chang <abner.chang@amd.com>
> Cc: Igor Kulchytskyy <igork@ami.com>
> Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
> Reviewed-by: Nickle Wang <nicklew@nvidia.com>
>
> ---
> RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
> b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
> index 8b9bdc313832..85dc546120e2 100644
> --- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
> +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c
> @@ -562,7 +562,7 @@ EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL
> mRedfishConfigHandler = {
> **/
>
> VOID
>
> EFIAPI
>
> -EfiRestJasonStructureProtocolIsReady (
>
> +EfiRestJsonStructureProtocolIsReady (
>
> IN EFI_EVENT Event,
>
> IN VOID *Context
>
> )
>
> @@ -829,7 +829,7 @@ RedfishResourceEntryPoint (
> EfiCreateProtocolNotifyEvent (
>
> &gEfiRestJsonStructureProtocolGuid,
>
> TPL_CALLBACK,
>
> - EfiRestJasonStructureProtocolIsReady,
>
> + EfiRestJsonStructureProtocolIsReady,
>
> NULL,
>
> &Registration
>
> );
>
> --
> 2.32.0 (Apple Git-132)
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112674): https://edk2.groups.io/g/devel/message/112674
Mute This Topic: https://groups.io/mt/103255137/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [edk2-redfish-client][PATCH v2 1/3] RedfishClientPkg: add check for NULL pointer to avoid ASSERT
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 1/3] RedfishClientPkg: add check for NULL pointer to avoid ASSERT Mike Maslenkin
@ 2023-12-19 3:40 ` Chang, Abner via groups.io
0 siblings, 0 replies; 11+ messages in thread
From: Chang, Abner via groups.io @ 2023-12-19 3:40 UTC (permalink / raw)
To: Mike Maslenkin, devel@edk2.groups.io; +Cc: nicklew@nvidia.com, igork@ami.com
[AMD Official Use Only - General]
Reviewed-by: Abner Chang <abner.chang@amd.com>
> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin@gmail.com>
> Sent: Tuesday, December 19, 2023 9:00 AM
> To: devel@edk2.groups.io
> Cc: Chang, Abner <Abner.Chang@amd.com>; nicklew@nvidia.com;
> igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> Subject: [edk2-redfish-client][PATCH v2 1/3] RedfishClientPkg: add check for
> NULL pointer to avoid ASSERT
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> Initially RedfishPlatformConfigGetConfigureLang could return success
> even if ConfigureLangList is empty. After fixing this condition,
> RedfishPlatformConfigGetConfigureLang returns an error, but this doesn't
> help to avoid ASSERT because the error path is the same as for non-empty
> list.
>
> Cc: Abner Chang <abner.chang@amd.com>
> Cc: Igor Kulchytskyy <igork@ami.com>
> Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
> Reviewed-by: Nickle Wang <nicklew@nvidia.com>
> ---
> .../RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git
> a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.
> c
> b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.
> c
> index 4cb7621c25c4..0f0b050d7eba 100644
> ---
> a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.
> c
> +++
> b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.
> c
> @@ -3118,7 +3118,9 @@ LeaveFunction:
> FreePool (ConfigureLangBuffer);
>
> }
>
>
>
> - FreePool (ConfigureLangList);
>
> + if (ConfigureLangList != NULL) {
>
> + FreePool (ConfigureLangList);
>
> + }
>
>
>
> *NumberOfValues = (UINT32)ListCount;
>
> return FirstEmptyPropKeyValueList;
>
> --
> 2.32.0 (Apple Git-132)
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112675): https://edk2.groups.io/g/devel/message/112675
Mute This Topic: https://groups.io/mt/103255135/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [edk2-redfish-client][PATCH v2 3/3] RedfishClientPkg: fix access to unitialized variable.
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 3/3] RedfishClientPkg: fix access to unitialized variable Mike Maslenkin
@ 2023-12-19 3:40 ` Chang, Abner via groups.io
0 siblings, 0 replies; 11+ messages in thread
From: Chang, Abner via groups.io @ 2023-12-19 3:40 UTC (permalink / raw)
To: Mike Maslenkin, devel@edk2.groups.io; +Cc: nicklew@nvidia.com, igork@ami.com
[AMD Official Use Only - General]
Reviewed-by: Abner Chang <abner.chang@amd.com>
> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin@gmail.com>
> Sent: Tuesday, December 19, 2023 9:00 AM
> To: devel@edk2.groups.io
> Cc: Chang, Abner <Abner.Chang@amd.com>; nicklew@nvidia.com;
> igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> Subject: [edk2-redfish-client][PATCH v2 3/3] RedfishClientPkg: fix access to
> unitialized variable.
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> It is possible that at the time of accessing to AsciiLocation pointer
> the memory is not allocated.
>
> Also gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) emits a warning for
> this case:
>
> RedfishFeatureUtilityLib.c:1889:37: error: 'AsciiLocation' may be used
> uninitialized in this function [-Werror=maybe-uninitialized]
> *Location = StrAsciiToUnicode (AsciiLocation);
>
> Cc: Abner Chang <abner.chang@amd.com>
> Cc: Igor Kulchytskyy <igork@ami.com>
> Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
> Reviewed-by: Nickle Wang <nicklew@nvidia.com>
>
> ---
> .../RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git
> a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.
> c
> b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.
> c
> index 0f0b050d7eba..01c054ae3b70 100644
> ---
> a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.
> c
> +++
> b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.
> c
> @@ -1856,7 +1856,8 @@ GetEtagAndLocation (
> }
>
>
>
> if (Location != NULL) {
>
> - *Location = NULL;
>
> + *Location = NULL;
>
> + AsciiLocation = NULL;
>
>
>
> if (*(Response->StatusCode) == HTTP_STATUS_200_OK) {
>
> Header = HttpFindHeader (Response->HeaderCount, Response->Headers,
> HTTP_HEADER_LOCATION);
>
> --
> 2.32.0 (Apple Git-132)
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112676): https://edk2.groups.io/g/devel/message/112676
Mute This Topic: https://groups.io/mt/103255138/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes
2023-12-19 1:00 [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Mike Maslenkin
` (3 preceding siblings ...)
2023-12-19 2:04 ` [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Chang, Abner via groups.io
@ 2024-01-03 8:33 ` Chang, Abner via groups.io
4 siblings, 0 replies; 11+ messages in thread
From: Chang, Abner via groups.io @ 2024-01-03 8:33 UTC (permalink / raw)
To: Mike Maslenkin, devel@edk2.groups.io; +Cc: nicklew@nvidia.com, igork@ami.com
[AMD Official Use Only - General]
Hi Mike, is https://bugzilla.tianocore.org/show_bug.cgi?id=4625 BZ ticket for this patch set?
Abner
> -----Original Message-----
> From: Mike Maslenkin <mike.maslenkin@gmail.com>
> Sent: Tuesday, December 19, 2023 9:00 AM
> To: devel@edk2.groups.io
> Cc: Chang, Abner <Abner.Chang@amd.com>; nicklew@nvidia.com;
> igork@ami.com; Mike Maslenkin <mike.maslenkin@gmail.com>
> Subject: [edk2-redfish-client][PATCH v2 0/3] change method for provisioning
> + minor fixes
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> This patch set contains minor fixes.
>
> diff from v1:
> original patch 4/4 with change related to BIOS resources provisioning
> removed.
>
> PR: https://github.com/tianocore/edk2-redfish-client/pull/64
>
> Cc: Abner Chang <abner.chang@amd.com>
> Cc: Igor Kulchytskyy <igork@ami.com>
> Cc: Nickle Wang <nicklew@nvidia.com>
> Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#113061): https://edk2.groups.io/g/devel/message/113061
Mute This Topic: https://groups.io/mt/103255134/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-01-03 8:33 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-19 1:00 [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Mike Maslenkin
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 1/3] RedfishClientPkg: add check for NULL pointer to avoid ASSERT Mike Maslenkin
2023-12-19 3:40 ` Chang, Abner via groups.io
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 2/3] RedfishClientPkg: fix typo in EfiRestJsonStructureProtocolIsReady Mike Maslenkin
2023-12-19 3:40 ` Chang, Abner via groups.io
2023-12-19 1:00 ` [edk2-devel] [edk2-redfish-client][PATCH v2 3/3] RedfishClientPkg: fix access to unitialized variable Mike Maslenkin
2023-12-19 3:40 ` Chang, Abner via groups.io
2023-12-19 2:04 ` [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] change method for provisioning + minor fixes Chang, Abner via groups.io
2023-12-19 2:39 ` Mike Maslenkin
2023-12-19 3:38 ` Chang, Abner via groups.io
2024-01-03 8:33 ` Chang, Abner via groups.io
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox