[PATCH 5.4 183/187] Input: pegasus-notetaker - fix potential out-of-bounds access