[PATCH 6.12 026/112] Input: pegasus-notetaker - fix potential out-of-bounds access