[PATCH 4.19 105/131] tty: rocket, avoid OOB access