Repair a verified behavior in RT-Thread/rt-thread.
Repair a verified behavior in RT-Thread/rt-thread.: a task in OriGent-RL-Data (Harbor dataset). When RT USING DM is enabled, rt spi bus register() currently stores the chip-select pin identifiers for struct rt spi bus in memory obtained from rt malloc(). For a non-slave bus with num chipselect set…
The task
When RT_USING_DM is enabled, rt_spi_bus_register() currently stores the chip-select pin identifiers for struct rt_spi_bus in memory obtained from rt_malloc(). For a non-slave bus with num_chipselect set to 2 and two named "cs" pins, allocation failure makes registration return -RT_ENOMEM, unregister the…
Part of henryen/OriGent-RL-Data.