From 0b36a69c448088ed50b503c9d09ef2d0f8e9295a Mon Sep 17 00:00:00 2001 From: internal Date: Tue, 13 Dec 2022 13:33:09 +0100 Subject: [PATCH] check if MCI interface present --- ddbridge/ddbridge-mci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ddbridge/ddbridge-mci.c b/ddbridge/ddbridge-mci.c index a37edc5..d2f143c 100644 --- a/ddbridge/ddbridge-mci.c +++ b/ddbridge/ddbridge-mci.c @@ -134,6 +134,8 @@ int ddb_mci_cmd_link(struct ddb_link *link, struct mci_result res; int stat; + if (!link->mci_ok) + return -EFAULT; if (!result) result = &res; mutex_lock(&link->mci_lock);