check if MCI interface present

This commit is contained in:
internal 2022-12-13 13:33:09 +01:00
parent 6c068c0cc3
commit 4b5cd433f9
1 changed files with 2 additions and 0 deletions

View File

@ -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);