[PATCH 5.10 255/300] Input: pegasus-notetaker - fix potential out-of-bounds access