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

This commit is contained in:
qctecmdr authored and Gerrit - the friendly Code Review server committed 2020-08-30 18:29:13 -07:00
commit bdf17c96e2
1 file changed
+1
@@ -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;