From: Baranee <anbazha...@hp.com> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2597
OpalGetFeatureDescriptor doesn't return failure if requested FeatureCode is not supported. Cc: Jiewen Yao <jiewen....@intel.com> Cc: Jian J Wang <jian.j.w...@intel.com> Cc: Chao Zhang <chao.b.zh...@intel.com> Signed-off-by: Zhichao Gao <zhichao....@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..873ca1909b 100644 --- a/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c +++ b/SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalCore.c @@ -1892,9 +1892,10 @@ OpalGetFeatureDescriptor ( *DataSize = Size; CopyMem (Data, Feat, Size); + return TcgResultSuccess; } - return TcgResultSuccess; + return TcgResultFailure; } /** -- 2.21.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#62275): https://edk2.groups.io/g/devel/message/62275 Mute This Topic: https://groups.io/mt/75390679/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-