Hi Christian, On Wed, Oct 08, 2014 at 04:45:18PM +0200, Christian Gmeiner wrote: > +static irqreturn_t ar1021_i2c_irq(int irq, void *dev_id) > +{ > + struct ar1021_i2c *ar1021 = dev_id; > + struct input_dev *input = ar1021->input; > + u8 *data = ar1021->data; > + unsigned int x, y, button; > + int error; > + > + error = i2c_master_recv(ar1021->client, > + ar1021->data, sizeof(ar1021->data)); > + if (error < 0) I think this check should be "if (retval != sizeof(ar1021->data))" to avoid using garbage data in case of short read. I'll change it locally and apply the patch. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html