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

Commit dc59b58b authored by Mao Jinlong's avatar Mao Jinlong Committed by Gerrit - the friendly Code Review server
Browse files

byte-cntr: Add mutex_unlock when rwp offset is invalid



Need add the mutex_unlock when rwp_offset is invalid.

Change-Id: I24fb3ae187d9fad33d073a33710f162c8d1a9c58
Signed-off-by: default avatarMao Jinlong <jinlmao@codeaurora.org>
parent a7b4e9f4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -207,6 +207,7 @@ int usb_bypass_start(struct byte_cntr *byte_cntr_data)
	if (offset < 0) {
		dev_err(&tmcdrvdata->csdev->dev,
			"%s: invalid rwp offset value\n", __func__);
		mutex_unlock(&byte_cntr_data->usb_bypass_lock);
		return offset;
	}
	byte_cntr_data->offset = offset;