check if MCI interface present

This commit is contained in:
internal 2022-12-13 13:33:09 +01:00 committed by rjkm
parent e64ceb90fb
commit 0b36a69c44
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);