Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d010cbb authored by Sujeev Dias's avatar Sujeev Dias Committed by Gerrit - the friendly Code Review server
Browse files

mhi: dev: uci: release lock as last step during uci_remove



Release device mutex as last step, otherwise uci_release could
free device memory while uci_remove still accessing same device
node.

CRs-Fixed: 2257246
Change-Id: I746eefc704152b528e80be7676f4a8604abcd38d
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 715523db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -540,8 +540,8 @@ static void mhi_uci_remove(struct mhi_device *mhi_dev)
		return;
	}

	mutex_unlock(&uci_dev->mutex);
	MSG_LOG("Exit\n");
	mutex_unlock(&uci_dev->mutex);
}

static int mhi_uci_probe(struct mhi_device *mhi_dev,