@@ -1334,9 +1334,9 @@ static int ipa_mhi_connect_pipe_internal(struct ipa_mhi_connect_params *in, u32
return 0;
fail_connect_pipe:
- mutex_unlock(&mhi_client_general_mutex);
ipa_mhi_reset_channel(channel, true);
fail_start_channel:
+ mutex_unlock(&mhi_client_general_mutex);
IPA_ACTIVE_CLIENTS_DEC_EP(in->sys.client);
return -EPERM;
}