[PATCH 4.4 07/91] altera-stapl: altera_get_note: prevent write beyond end of key