input: touchscreen: xiaomi: Fix touch id assertion bounds

Change-Id: I557185fa36b42056cd959533aec3e7eec5a6677f
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
This commit is contained in:
Jens Reidel 2024-08-23 00:23:34 +02:00
parent 0a303fb8fb
commit e9d92e404d
No known key found for this signature in database
GPG Key ID: 23C1E5F512C12303

View File

@ -426,7 +426,7 @@ int xiaomitouch_register_modedata(int touchId,
if (!touch_pdata)
ret = -ENOMEM;
BUG_ON(touchId > 2);
BUG_ON(touchId >= 2);
touch_data = touch_pdata->touch_data[touchId];
pr_info("%s\n", __func__);