[PATCH v2] ufs: ti-j721e: Correct error detection
    Neil Armstrong 
    neil.armstrong at linaro.org
       
    Tue Oct 28 17:57:31 CET 2025
    
    
  
Hi,
On Tue, 07 Oct 2025 12:42:12 +0100, Andrew Goodbody wrote:
> In ti_j721e_ufs_probe there is a call to clk_get_rate but the code after
> that attempts to detect an error from that call incorrectly uses
> IS_ERR_VALUE.  Instead the test should just be for regular error codes.
> The call returns an unsigned long so that needs to be cast to a signed type
> first of all.
> 
> This issue was found by Smatch.
> 
> [...]
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-ufs (master)
[1/1] ufs: ti-j721e: Correct error detection
      https://source.denx.de/u-boot/custodians/u-boot-ufs/-/commit/6defecd943e92e4341cfa088ef4f4cc19ff2db8b
-- 
Neil
    
    
More information about the U-Boot
mailing list