[PATCH 4.19 284/287] tee: add overflow check in register_shm_helper()