diff options
-rw-r--r-- | chip/stm32/spi_master.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/spi_master.c b/chip/stm32/spi_master.c index aa37f191d5..ab95ca6594 100644 --- a/chip/stm32/spi_master.c +++ b/chip/stm32/spi_master.c @@ -166,7 +166,7 @@ int spi_transaction_async(const uint8_t *txdata, int txlen, rv = shared_mem_acquire(MAX(txlen, rxlen), &buf); if (rv != EC_SUCCESS) - goto err_free; + return rv; /* Drive SS low */ gpio_set_level(CONFIG_SPI_CS_GPIO, 0); |