[PATCH 6.17 554/563] tee: fix register_shm_helper()