Merge "byte-cntr: Add mutex_unlock when rwp offset is invalid"
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user