[PATCH] tee: fix illegal pointer dereference in tee_shm_put()