[PATCH 5.4 121/168] tty: rocket, avoid OOB access