Re: Linux USB HID should ignore values outside LogicalMinimum/Maximum range

From: Christoph Fritz
Date: Fri Oct 28 2011 - 15:19:30 EST


On Fri, 2011-10-28 at 18:23 +0200, Jiri Kosina wrote:
> On Mon, 24 Oct 2011, Dmitry Torokhov wrote:
>
> > While input core does not clam or validate the values reported by the
> > driver it might make sense to do so in hid-input; I am not sure how
> > often these limits programmed intorrectly. Jiri i sprobably the best
> > person to answer this question.
>
> I haven't met such a device myself yet.
>
> On the other hand I feel like just dropping the report on the floor should
> be the proper thing to do.
>
>
> Christoph, how about the (untested at my side yet) patch below? It'd be
> nice if you could test with the device you are seeing the problem with and
> let me know.


I don't have this device and I'm not the person who started this thread.
It's Denilson Figueiredo de SÃ <denilsonsa@xxxxxxxxx> , just see above.

Denilson, please comment.

Thanks,
-- Christoph


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/