Message ID | 1360246668-2291-8-git-send-email-pmeerw@pmeerw.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 7ade272..b85fb30 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -636,6 +636,11 @@ static int mxt_check_reg_init(struct mxt_data *data) index += size; } + if (index != pdata->config_length) { + dev_err(dev, "Config data inconsistent with device objects!\n"); + return -EINVAL; + } + return 0; }