[PATCH v2] tee: fix register_shm_helper()