Re: [PATCH] Input: raspberrypi-ts - reject out-of-range point counts and slot IDs

Linkai Gong <[email protected]>
Newsgroups org.kernel.vger.linux-input,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <[email protected]>
Hi Dave

On Thu, 20 Aug 2026 18:43:05 +0100, Dave Stevenson wrote:
> TBH I'd support dropping this driver entirely. Will anyone object if I
> send a patch to do that?

Fine by me. If it goes, this patch doesn't need to land.

> Can you just abort here?
> If this was with i > 0 then there has already been 1 or more
> input_mt_slot(), input_mt_report_slot_state(), and
> touchscreen_report_pos() calls which update the device state.

Yeah, that's a fair point. Returning in the middle of the loop
leaves the earlier slots already updated.

If the driver stays I'll send a v2 that checks all the IDs first.

Thanks,
Linkai
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.