[tslib] [PATCH v0 3/3] Increase max slots
Markus Burri
markus.burri at mt.com
Mon Mar 27 07:59:08 PDT 2023
During heady load we will overrun the slots and write out-of-memory.
Increasing the number of slot will slightly increase the memory
consumption but prevent from buffer overflow.
Signed-off-by: Markus Burri <markus.burri at mt.com>
Gbp-Pq: Name 0007-Increase-max-slots.patch
---
tools/ts_uinput.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/ts_uinput.c b/tools/ts_uinput.c
index 0b9f554..cb9f647 100644
--- a/tools/ts_uinput.c
+++ b/tools/ts_uinput.c
@@ -159,7 +159,7 @@ static void help(void)
printf("See the manpage for further details.\n");
}
-#define MAX_CODES_PER_SLOT 20
+#define MAX_CODES_PER_SLOT 32
static int send_touch_events(struct data_t *data, struct ts_sample_mt **s,
int nr, int max_slots)
{
--
2.39.2
More information about the tslib
mailing list