summaryrefslogtreecommitdiff
path: root/tools/lib/python/abi/abi_regex.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-11-24 10:56:01 +0300
committerMark Brown <broonie@kernel.org>2025-11-24 15:11:55 +0000
commitcb99656b7c4185953c9d272bbdab63c8aa651e6e (patch)
treeb4bad90771cb12c306757682a5335039e6c93a53 /tools/lib/python/abi/abi_regex.py
parent43a3adb6dd39d98bf84e04569e7604be5e5c0d79 (diff)
spi: Fix potential uninitialized variable in probe()
If the device tree is messed up, then potentially the "protocol" string could potentially be uninitialized. The property is supposed to default to "motorola" so if the of_property_read_string() function returns -EINVAL then default to "motorola". Fixes: 059f545832be ("spi: add support for microchip "soft" spi controller") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Prajna Rajendra Kumar <prajna.rajendrakumar@microchip.com> Link: https://patch.msgid.link/aSQPkfkiJ0w-FJMW@stanley.mountain Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/lib/python/abi/abi_regex.py')
0 files changed, 0 insertions, 0 deletions