You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
Fixed condition check based on klocwork scan (#442)
Fixed condition check based on KW report Signed-off-by: Ravi Rangarajan <ravi.p.rangarajan@intel.com>
This commit is contained in:
committed by
Aiden Park
parent
a218222928
commit
13974ee2d4
@@ -1082,7 +1082,7 @@ FindImage (
|
||||
// If capsule header is NULL or no payloads found in the capsule
|
||||
// return EFI_NOT_FOUND;
|
||||
//
|
||||
if ((CapHeader != NULL) && (CapHeader->PayloadItemCount == 0)) {
|
||||
if ((CapHeader == NULL) || (CapHeader->PayloadItemCount == 0)) {
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user