From ba31acae58e8dc6fd05cf4518db681f8a87fe6d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se>
Date: Thu, 16 Feb 2017 17:12:51 +0100
Subject: [PATCH] cpu/lpc2387: Add missing assert(buff != NULL)

---
 cpu/lpc2387/mci/lpc2387-mci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpu/lpc2387/mci/lpc2387-mci.c b/cpu/lpc2387/mci/lpc2387-mci.c
index 77207ed117..a1045f510a 100644
--- a/cpu/lpc2387/mci/lpc2387-mci.c
+++ b/cpu/lpc2387/mci/lpc2387-mci.c
@@ -380,6 +380,8 @@ static int send_cmd(unsigned int idx, unsigned long arg, unsigned int rt, unsign
 {
     unsigned int s, mc;
 
+    assert(buff != NULL);
+
     if (idx & 0x80) {               /* Send a CMD55 prior to the specified command if it is ACMD class */
         if (!send_cmd(CMD55, (unsigned long)CardRCA << 16, 1, buff) /* When CMD55 is faild, */
            || !(buff[0] & 0x00000020)) {
-- 
GitLab