]> git.ipfire.org Git - thirdparty/u-boot.git/commit
usb: f_sdp: handle the spl load function failure
authorYe Li <ye.li@nxp.com>
Fri, 22 May 2026 07:27:05 +0000 (15:27 +0800)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Fri, 26 Jun 2026 09:01:42 +0000 (11:01 +0200)
commiteec819b98439c50f8ea38ac078ff6a862ea03038
tree43af38ad337079db752f3217f538c13683b34e6f
parent63f6cc8ba618396cb9c0161bb5c6d217604ae1d0
usb: f_sdp: handle the spl load function failure

Current implementation does not check the return value of spl load
function. If the spl load is failed, SPL may meet crash due to
spl_image variable is not initialized. Add the failure check,
so SPL can print and stop with error.

Signed-off-by: Ye Li <ye.li@nxp.com>
Fixes: 2c72ead73874 ("usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP")
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Link: https://patch.msgid.link/20260522072705.1156220-1-ye.li@nxp.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
drivers/usb/gadget/f_sdp.c