[PATCH 5.15 326/392] Input: pegasus-notetaker - fix potential out-of-bounds access