Merge "input: touchscreen: Fix error code in Atmel driver"
This commit is contained in:
commit
1373daa8dd
1 changed files with 1 additions and 0 deletions
|
@ -4023,6 +4023,7 @@ static int mxt_probe(struct i2c_client *client,
|
|||
len = strlen(data->pdata->cfg_name);
|
||||
if (len > MXT_NAME_MAX_LEN - 1) {
|
||||
dev_err(&client->dev, "Invalid config name\n");
|
||||
error = -EINVAL;
|
||||
goto err_destroy_mutex;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue