tee: add overflow check in registershmhelper()
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.10.137 by commit 578c349570d2a912401963783b36e0ec7a25c053, it was introduced in version v4.16 by commit 033ddf12bcf5326b93bd604f50a7474a434a35f9. For more details please see the references link.