Files
linux/drivers/spi
Dan Carpenter cb99656b7c 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: 059f545832 ("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>
2025-11-24 15:11:55 +00:00
..
2024-10-07 14:53:15 +01:00
2025-10-13 11:27:36 +01:00
2025-10-13 11:27:36 +01:00
2025-02-03 19:24:44 +00:00
2025-10-27 11:10:50 +00:00
2024-09-30 01:12:21 +02:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2025-09-08 16:22:15 +01:00
2024-09-30 22:43:40 +01:00
2025-07-07 16:12:21 +01:00
2024-10-07 14:53:15 +01:00
2025-09-22 09:29:30 +01:00