input: touchscreen: xiaomi: Fix touch id assertion bounds
Change-Id: I557185fa36b42056cd959533aec3e7eec5a6677f Signed-off-by: Jens Reidel <adrian@travitia.xyz>
This commit is contained in:
parent
0a303fb8fb
commit
e9d92e404d
@ -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__);
|
||||
|
Loading…
Reference in New Issue
Block a user