security/intel/stm: Remove check that can never be true
STM_RSC_MEM_DESC defines rws_attributes as 3 bits, which can't be greater than 7. Found-by: Coverity Scan #1430578 Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I1efd007e96abd6d5d36f314752abfadffb0024d1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78619 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com>
This commit is contained in:
parent
cc93db9435
commit
face29cd50
|
@ -354,9 +354,6 @@ static bool validate_resource(STM_RSC *resource_list, uint32_t num_entries)
|
||||||
|
|
||||||
if (resource->header.length != sizeof(STM_RSC_MEM_DESC))
|
if (resource->header.length != sizeof(STM_RSC_MEM_DESC))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (resource->mem.rwx_attributes > FULL_ACCS)
|
|
||||||
return false;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IO_RANGE:
|
case IO_RANGE:
|
||||||
|
|
Loading…
Reference in New Issue