forked from Mirrors/opensbi
		
	lib: sbi: fix typo in is_region_subset
Fix typo in is_region_subset, regB_end should be calculated from regB. Signed-off-by: Nikita Shubin <n.shubin@yadro.com> Reviewed-by: Dong Du <Dd_nirvana@sjtu.edu.cn> Reviewed-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
		
				
					committed by
					
						
						Anup Patel
					
				
			
			
				
	
			
			
			
						parent
						
							8e2ef4f7af
						
					
				
				
					commit
					3a69cc1487
				
			@@ -159,7 +159,7 @@ static bool is_region_subset(const struct sbi_domain_memregion *regA,
 | 
			
		||||
	ulong regA_start = regA->base;
 | 
			
		||||
	ulong regA_end = regA->base + (BIT(regA->order) - 1);
 | 
			
		||||
	ulong regB_start = regB->base;
 | 
			
		||||
	ulong regB_end = regB->base + (BIT(regA->order) - 1);
 | 
			
		||||
	ulong regB_end = regB->base + (BIT(regB->order) - 1);
 | 
			
		||||
 | 
			
		||||
	if ((regB_start <= regA_start) &&
 | 
			
		||||
	    (regA_start < regB_end) &&
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user