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

Commit bdf17c96 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "byte-cntr: Add mutex_unlock when rwp offset is invalid"

parents 1f9ad06d dc59b58b
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;