[PATCH] mmc: owl_mmc: Do not dereference data before NULL check
    Tom Rini 
    trini at konsulko.com
       
    Tue Oct 28 18:59:09 CET 2025
    
    
  
On Thu, 31 Jul 2025 12:11:47 +0100, Andrew Goodbody wrote:
> In owl_mmc_prepare_data there is a NULL check for the pointer data but
> it happens after data has already been dereferenced. Refactor the code
> so that the NULL check happens before any code dereferences data.
> 
> This issue was found by Smatch.
> 
> 
> [...]
Applied to u-boot/master, thanks!
[1/1] mmc: owl_mmc: Do not dereference data before NULL check
      commit: 6e382d8fc5ee6876ade500222cb0ade9cdc597ed
-- 
Tom
    
    
More information about the U-Boot
mailing list