fit: fixed bug in locate_dtb_in_fit()
If the dtb is the first data of the FIT, the its offset is 0x0. Change the test to '<' instead of '<=' Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							parent
							
								
									906a9dbbcb
								
							
						
					
					
						commit
						d56b86eec3
					
				| 
						 | 
					@ -73,7 +73,7 @@ void *locate_dtb_in_fit(const void *fit)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ret = fdt_offset(fit);
 | 
						ret = fdt_offset(fit);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (ret <= 0)
 | 
						if (ret < 0)
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		return (void *)fit+size+ret;
 | 
							return (void *)fit+size+ret;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue