mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "byte-cntr: Add mutex_unlock when rwp_offset is invalid"
This commit is contained in:
commit
d89ce61309
1 changed files with 1 additions and 0 deletions
|
|
@ -213,6 +213,7 @@ static 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue