usb: fsl-dt-fixup: Return an error code on error
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Thu, 25 Sep 2025 11:56:44 +0000 (12:56 +0100)
committerMarek Vasut <marek.vasut+usb@mailbox.org>
Tue, 28 Oct 2025 15:33:15 +0000 (16:33 +0100)
commit76d3b665310885f1a13ff83e818bb42f2cf26213
treea43e6d6dd9b3666ea8785c45d183bd0a1f881443
parente41e6feb3d3b33f0793df6a1d9da20c8096a346e
usb: fsl-dt-fixup: Return an error code on error

fsl_fdt_fixup_usb_erratum uses strcmp to detect an error but then
returns 'err' without it being set to an error. Calling code may not
detect that an error occurred leading to a silent failure. Instead just
return -EINVAL.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/usb/common/fsl-dt-fixup.c