[PATCH] Properly check tee_shm buffer mmap offset