[PATCH 5.15.y 3/3] Input: pegasus-notetaker - fix potential out-of-bounds access