[PATCH v4] soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop()
    Andrew Jeffery 
    andrew at codeconstruct.com.au
       
    Thu Apr  3 21:15:01 AEDT 2025
    
    
  
On Tue, 01 Apr 2025 15:46:47 +0800, Henry Martin wrote:
> devm_kasprintf() returns NULL when memory allocation fails. Currently,
> aspeed_lpc_enable_snoop() does not check for this case, which results in a
> NULL pointer dereference.
> 
> Add NULL check after devm_kasprintf() to prevent this issue.
> 
> 
> [...]
Thanks, I've applied this to be picked up through the BMC tree.
--
Andrew Jeffery <andrew at codeconstruct.com.au>
    
    
More information about the Linux-aspeed
mailing list