[PATCH 6.1 438/568] Input: pegasus-notetaker - fix potential out-of-bounds access