On 10/25/2016 09:04 PM, Colin King wrote: > From: Colin Ian King <colin.king@xxxxxxxxxxxxx> > > In the case that the read size is not 2 or 4 bytes > then maxim_thermocouple_read is not initializing ret and > hence may return early with a bogus error return or > just through to return with a bogos unread value in *val. > Fix this by setting ret to -EINVAL for invalid (unhandled) > read sizes. > > Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx> Again, Arnd already took the prize, https://lkml.org/lkml/2016/10/25/518 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html