From 2c901ff181d2a378d722c33bc5023b4c1b371df1 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 29 May 2018 18:05:18 +0200 Subject: [PATCH] cpu/lpc2387: Fixed invalid call to send_msg in lpc2387-mci.c At `lpc2387-mci.c:383` in `send_cmd()` an `assert()` enforces that parameter `buff` is not `NULL`. At `lpc2387-mci.c:538` in `mci_initialize()` `send_cmd()` was called with `buff==NULL`. --- cpu/lpc2387/mci/lpc2387-mci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/lpc2387/mci/lpc2387-mci.c b/cpu/lpc2387/mci/lpc2387-mci.c index 941c67fad4..e61121ece7 100644 --- a/cpu/lpc2387/mci/lpc2387-mci.c +++ b/cpu/lpc2387/mci/lpc2387-mci.c @@ -535,7 +535,7 @@ diskio_sta_t mci_initialize(void) //for (Timer[0] = 2; Timer[0]; ); xtimer_usleep(250); - send_cmd(CMD0, 0, 0, NULL); /* Enter idle state */ + send_cmd(CMD0, 0, 0, resp); /* Enter idle state */ CardRCA = 0; /*---- Card is 'idle' state ----*/