public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: "Kuo, Scottie" <scottie.kuo@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Zhang, Qi1" <qi1.zhang@intel.com>,
	"Kumar, Rahul1" <rahul1.kumar@intel.com>,
	"Chu, Maggie" <maggie.chu@intel.com>,
	"Wang, Jian J" <jian.j.wang@intel.com>
Subject: Re: [PATCH] SecurityPkg: TcgStorageOpalLib: Initialize SupportedAttributes parameter.
Date: Thu, 27 May 2021 10:31:35 +0000	[thread overview]
Message-ID: <PH0PR11MB488522D64C63AD902310A4508C239@PH0PR11MB4885.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20210524064107.537-1-scottie.kuo@intel.com>

 Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>

Hi Scottie
Please remember to add Wang, Jian J as reviewer too.

Thank you
Yao Jiewen

> -----Original Message-----
> From: Kuo, Scottie <scottie.kuo@intel.com>
> Sent: Monday, May 24, 2021 2:41 PM
> To: devel@edk2.groups.io
> Cc: Kuo, Scottie <scottie.kuo@intel.com>; Zhang, Qi1 <qi1.zhang@intel.com>;
> Kumar, Rahul1 <rahul1.kumar@intel.com>; Yao, Jiewen
> <jiewen.yao@intel.com>; Chu, Maggie <maggie.chu@intel.com>
> Subject: [PATCH] SecurityPkg: TcgStorageOpalLib: Initialize SupportedAttributes
> parameter.
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3408
> 
> The value of SupportedAttributes in OpalGetSupportedAttributesInfo ()
> is left undetermined, if the caller doesn't initialize it.
> Initialize it in the function entry.
> 
> Signed-off-by: Scottie Kuo <scottie.kuo@intel.com>
> Cc: Qi Zhang <qi1.zhang@intel.com>
> Cc: Rahul Kumar <rahul1.kumar@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Maggie Chu <maggie.chu@intel.com>
> ---
>  SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c
> b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c
> index b58597e61f..c840590e8e 100644
> --- a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c
> +++ b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c
> @@ -1,7 +1,7 @@
>  /** @file
>    Public API for Opal Core library.
> 
> -Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2016 - 2021, Intel Corporation. All rights reserved.<BR>
>  SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  **/
> @@ -1647,6 +1647,7 @@ OpalGetSupportedAttributesInfo(
>    NULL_CHECK(OpalBaseComId);
> 
>    ZeroMem(Buffer, BUFFER_SIZE);
> +  ZeroMem(SupportedAttributes, sizeof(OPAL_DISK_SUPPORT_ATTRIBUTE));
>    ASSERT(sizeof(Buffer) >= sizeof(TCG_SUPPORTED_SECURITY_PROTOCOLS));
> 
>    //
> --
> 2.26.2.windows.1


       reply	other threads:[~2021-05-27 10:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210524064107.537-1-scottie.kuo@intel.com>
2021-05-27 10:31 ` Yao, Jiewen [this message]
     [not found]   ` <CO1PR11MB489927DF374E8C5B86A81E07E33E9@CO1PR11MB4899.namprd11.prod.outlook.com>
2021-06-15  8:18     ` [PATCH] SecurityPkg: TcgStorageOpalLib: Initialize SupportedAttributes parameter Wang, Jian J

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=PH0PR11MB488522D64C63AD902310A4508C239@PH0PR11MB4885.namprd11.prod.outlook.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