summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/input/touchscreen/atmel_maxtouch_ts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/atmel_maxtouch_ts.c b/drivers/input/touchscreen/atmel_maxtouch_ts.c
index 712a278c9d1e..99a4b40e432e 100644
--- a/drivers/input/touchscreen/atmel_maxtouch_ts.c
+++ b/drivers/input/touchscreen/atmel_maxtouch_ts.c
@@ -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;
}